Displaying 1 result from an estimated 1 matches for "scandirforexecutable".
2015 May 21
2
[LLVMdev] Driver::GetProgramPath is unable to find programs with file extension in name
Hello,
We are having a problem with linker lookup on Windows.
When the driver tries to locate a program by its name, e.g. a linker, it
scans the paths provided by the toolchain using ScanDirForExecutable and
then, if fails, uses llvm::sys::findProgramByName, which on Windows
searches the CWD and system path. ScanDirForExecutable disregards file
extensions, so search in the toolchain-provided dirs on Windows fails.
llvm::sys::findProgramByName is aware of extensions via the "PATHEXT"...