[llvm-commits] CVS: llvm/tools/llvm-ld/llvm-ld.cpp
Reid Spencer
reid at x10sys.com
Wed Dec 22 05:50:28 PST 2004
Changes in directory llvm/tools/llvm-ld:
llvm-ld.cpp updated: 1.18 -> 1.19
---
Log message:
Correct compilation for Cygwin. FindExecutable now returns a sys::Path.
---
Diffs of the changes: (+3 -3)
Index: llvm/tools/llvm-ld/llvm-ld.cpp
diff -u llvm/tools/llvm-ld/llvm-ld.cpp:1.18 llvm/tools/llvm-ld/llvm-ld.cpp:1.19
--- llvm/tools/llvm-ld/llvm-ld.cpp:1.18 Tue Dec 21 19:37:33 2004
+++ llvm/tools/llvm-ld/llvm-ld.cpp Wed Dec 22 07:50:17 2004
@@ -310,12 +310,12 @@
// Windows doesn't support #!/bin/sh style shell scripts in .exe files. To
// support windows systems, we copy the llvm-stub.exe executable from the
// build tree to the destination file.
- std::string llvmstub = FindExecutable("llvm-stub.exe", argv[0]);
- if (llvmstub.empty()) {
+ sys::Path llvmstub = FindExecutable("llvm-stub.exe", argv[0]);
+ if (llvmstub.isEmpty()) {
std::cerr << "Could not find llvm-stub.exe executable!\n";
exit(1);
}
- sys::CopyFile(sys::Path(OutputFilename), sys::Path(llvmstub));
+ sys::CopyFile(sys::Path(OutputFilename), llvmstub);
return;
#endif
More information about the llvm-commits
mailing list