[llvm-commits] [patch] make Program::FindProgramByName not look in "." unless it's in $PATH

Dan Gohman gohman at apple.com
Mon Jul 27 13:20:24 PDT 2009


On Jul 27, 2009, at 12:44 PM, Pawel Worach wrote:


> Hi,
>
> This patch fixes the FIXME regarding looking in "." for ld, as,
> clang-cc and friends unconditionally.
> If "." is in $PATH it will pick up the program in "." correctly.
> Tested on Unix only.
>
> Solution suggested by edwin on #llvm.

Hello,

The traditional behavior of sh(1) and friends is to use the given
path verbatim if it contains any slashes, not just if it's
absolute.

Dan




More information about the llvm-commits mailing list