Lines Matching refs:gccArgs
189 const std::vector<std::string> &GCCArgs,
202 const std::vector<std::string> &GCCArgs,
279 const std::vector<std::string> &GCCArgs =
335 const std::vector<std::string> &GCCArgs,
348 const std::vector<std::string> &GCCArgs,
510 std::vector<std::string> GCCArgs(ArgsForGCC);
511 GCCArgs.insert(GCCArgs.end(), SharedLibs.begin(), SharedLibs.end());
515 InputFile, OutputFile, Error, GCCArgs,
525 const std::vector<std::string> *GCCArgs,
535 GCC *gcc = GCC::create(Message, GCCBinary, GCCArgs);
562 const std::vector<std::string> &GCCArgs =
576 const std::vector<std::string> &GCCArgs,
652 std::vector<const char*> GCCArgs;
654 GCCArgs.push_back(GCCPath.c_str());
657 GCCArgs.push_back("-m32");
660 I = gccArgs.begin(), E = gccArgs.end(); I != E; ++I)
661 GCCArgs.push_back(I->c_str());
665 GCCArgs.push_back("-x");
667 GCCArgs.push_back("c");
668 GCCArgs.push_back("-fno-strict-aliasing");
670 GCCArgs.push_back("assembler");
675 if (TargetTriple.isOSDarwin() && !IsARMArchitecture(GCCArgs))
676 GCCArgs.push_back("-force_cpusubtype_ALL");
680 GCCArgs.push_back(ProgramFile.c_str()); // Specify the input filename.
682 GCCArgs.push_back("-x");
683 GCCArgs.push_back("none");
684 GCCArgs.push_back("-o");
691 GCCArgs.push_back(OutputBinary.c_str()); // Output to the right file...
698 GCCArgs.push_back(ArgsForGCC[i].c_str());
700 GCCArgs.push_back("-lm"); // Hard-code the math library...
701 GCCArgs.push_back("-O2"); // Optimize the program a bit...
703 GCCArgs.push_back("-Wl,-R."); // Search this dir for .so files
706 GCCArgs.push_back("-mcpu=v9");
707 GCCArgs.push_back(0); // NULL terminator
711 for (unsigned i = 0, e = GCCArgs.size()-1; i != e; ++i)
712 errs() << " " << GCCArgs[i];
715 if (RunProgramWithTimeout(GCCPath, &GCCArgs[0], sys::Path(), sys::Path(),
717 *Error = ProcessFailure(GCCPath, &GCCArgs[0]);
803 std::vector<const char*> GCCArgs;
805 GCCArgs.push_back(GCCPath.c_str());
808 GCCArgs.push_back("-m32");
811 I = gccArgs.begin(), E = gccArgs.end(); I != E; ++I)
812 GCCArgs.push_back(I->c_str());
816 GCCArgs.push_back("-x");
817 GCCArgs.push_back(fileType == AsmFile ? "assembler" : "c");
819 GCCArgs.push_back("-fno-strict-aliasing");
820 GCCArgs.push_back(InputFile.c_str()); // Specify the input filename.
821 GCCArgs.push_back("-x");
822 GCCArgs.push_back("none");
824 GCCArgs.push_back("-G"); // Compile a shared library, `-G' for Sparc
830 GCCArgs.push_back("-single_module");
831 GCCArgs.push_back("-dynamiclib"); // `-dynamiclib' for MacOS X/PowerPC
832 GCCArgs.push_back("-undefined");
833 GCCArgs.push_back("dynamic_lookup");
835 GCCArgs.push_back("-shared"); // `-shared' for Linux/X86, maybe others
838 GCCArgs.push_back("-fPIC"); // Requires shared objs to contain PIC
841 GCCArgs.push_back("-mcpu=v9");
843 GCCArgs.push_back("-o");
844 GCCArgs.push_back(OutputFile.c_str()); // Output to the right filename.
845 GCCArgs.push_back("-O2"); // Optimize the program a bit.
854 GCCArgs.push_back(ArgsForGCC[i].c_str());
855 GCCArgs.push_back(0); // NULL terminator
861 for (unsigned i = 0, e = GCCArgs.size()-1; i != e; ++i)
862 errs() << " " << GCCArgs[i];
865 if (RunProgramWithTimeout(GCCPath, &GCCArgs[0], sys::Path(), sys::Path(),
867 GCCArgs[0]);