Lines Matching refs:cmd

174     std::string cmd = mExecutableToolsPath[(unsigned)CMD_TRANSLATE];  in translate()  local
175 cmd += std::string(" -arch=") + kGlobalTargetAttrs[mAbi].mArch; in translate()
176 cmd += " " + bc.mBCPath + " -o " + bc.mTargetBCPath; in translate()
177 runCmd(cmd, /*dump=*/true); in translate()
231 std::string cmd = mExecutableToolsPath[(unsigned)CMD_LINK]; in link() local
233 cmd += " " + mGlobalLDFlags; in link()
234 cmd += " " + bc.mLDFlags; in link()
236 cmd += std::string(" ") + mSysroot + "/usr/" + libdir + "/crtbegin_so.o"; in link()
237 cmd += " -shared " + bc.mObjPath + " -o " + bc.mOutPath; in link()
238 cmd += " -soname " + bc.mSOName; in link()
240 cmd += std::string(" ") + mSysroot + "/usr/" + libdir + "/crtbegin_static.o"; in link()
241 cmd += " " + bc.mObjPath + " -o " + bc.mOutPath; in link()
243 cmd += std::string(" ") + mSysroot + "/usr/" + libdir + "/crtbegin_dynamic.o"; in link()
244 cmd += " " + bc.mObjPath + " -o " + bc.mOutPath; in link()
247 cmd += " " + bc.mLDLocalLibsStr; in link()
248 cmd += " " + mGlobalLDLibs; in link()
249 cmd += " " + bc.mLDLibsStr; in link()
250 cmd += " " + mExecutableToolsPath[(unsigned)CMD_LINK_RUNTIME]; in link()
252 cmd += std::string(" -ldl"); in link()
253 cmd += std::string(" -lc -lm"); // Libportable may uses libc symbols in link()
256 cmd += std::string(" ") + mSysroot + "/usr/" + libdir + "/crtend_so.o"; in link()
258 cmd += std::string(" ") + mSysroot + "/usr/" + libdir + "/crtend_android.o"; in link()
259 runCmd(cmd, /*dump=*/true); in link()
281 void BitcodeCompiler::runCmd(std::string cmd, bool dump) { in runCmd() argument
282 LOGV("Command: %s", cmd.c_str()); in runCmd()
285 cmd += " > " + logfilename + " 2>&1"; in runCmd()
287 int ret = system(cmd.c_str()); in runCmd()
298 fout << "Failed command: " << cmd << "\n"; in runCmd()