[LLVMdev] llvmc searches PATH for llc

Joel E. Denny jdenny at etinternational.com
Thu Oct 28 10:28:47 PDT 2010


Hi Mikhail,

On Thu, 28 Oct 2010, Mikhail Glushenkov wrote:

> Joel E. Denny <jdenny <at> etinternational.com> writes:
> > Is it intended that llvmc should search PATH for llc?  For example, this 
> > means that llvmc 2.7 can invoke llc 2.8:
> > [...]
> 
> This is fixed in 2.8+ - llvmc now searches the directory it resides in first.

I just built r117553 from http://llvm.org/svn/llvm-project/llvm/trunk, and 
I'm seeing the same behavior as with 2.7 and 2.8.

% strace -f /home/jdenny/installs/llvm/trunk/bin/llvmc tmp.ll |& grep exec | grep llc
[pid  7015] execve("/home/jdenny/installs/llvm/2.8/bin/llc", ["llc", "-O2", "tmp.ll", "-o", "/tmp/llvm_vbIyN9/tmp.s"], [/* 42 vars */] <unfinished ...>




More information about the llvm-dev mailing list