[LLVMdev] small patch for llvm-ld, script improvement

Brian Olson bql at bolson.org
Fri Sep 10 05:52:30 PDT 2010


New to llvm and hopefully this will be a welcome small improvement.
The shell script wrapper generated by llvm-ld only works when the current working directory is the same as where the script and the bitcode file is. This can be fixed pretty easily by putting
`dirname $0`/
in front of the bitcode file name and should work as long as the bitcode and wrapper script live in the same directory.
Here's a 2 line patch to tools/llvm-ld/llvm-ld.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm_ld_dirname.diff.gz
Type: application/x-gzip
Size: 279 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100910/467c5cab/attachment.bin>


More information about the llvm-dev mailing list