[cfe-commits] r67256 - /cfe/trunk/lib/Driver/Tools.cpp

Daniel Dunbar daniel at zuster.org
Wed Mar 18 16:34:15 PDT 2009


Author: ddunbar
Date: Wed Mar 18 18:34:15 2009
New Revision: 67256

URL: http://llvm.org/viewvc/llvm-project?rev=67256&view=rev
Log:
Driver: Resolve program path for "cp" (used as part of transparent gcc
PCH support).

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=67256&r1=67255&r2=67256&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Mar 18 18:34:15 2009
@@ -62,7 +62,9 @@
       ArgStringList CpArgs;
       CpArgs.push_back(InputPath);
       CpArgs.push_back(Args.MakeArgString(OutputPath.c_str()));
-      C.getJobs().addJob(new Command("cp", CpArgs));
+      const char *Exec = 
+        Args.MakeArgString(getToolChain().GetProgramPath(C, "cp").c_str());
+      C.getJobs().addJob(new Command(Exec, CpArgs));
     }
   } else {
     assert(isa<CompileJobAction>(JA) && "Invalid action for clang tool.");





More information about the cfe-commits mailing list