[LLVMbugs] [Bug 9691] New: lit can't find bash in nonstandard location (e.g. for MKS)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Apr 12 14:17:27 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9691
Summary: lit can't find bash in nonstandard location (e.g. for
MKS)
Product: Test Suite
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: lit
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dneto.llvm at gmail.com
CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org
Created an attachment (id=6445)
--> (http://llvm.org/bugs/attachment.cgi?id=6445)
Patch for finding programs anywhere on the PATH
On Windows + Cmake + MKS, LitConfig.py can't find bash because MKS bash can
be in a non-standard location, i.e. outside of . or c:\bin
In MKS, you use regular DOS-style paths. In fact, bash is in
c:\mks\mksnt\bash.exe on my system.
I have attached a patch to allows us to find bash wherever it exists on the
path. It fixes what looks like an oversight in Util.which: that function will
use the value of the PATH env var if the "paths" argument is None.
The patch simply adds the case where "paths" is an empty string.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list