mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Fix VC++ breakage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22353 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -31,9 +31,9 @@ Program::FindProgramByName(const std::string& progName) {
|
||||
if (progName.length() == 0) // no program
|
||||
return Path();
|
||||
Path temp;
|
||||
if (!temp.setFile(progName)) // invalid name
|
||||
if (!temp.set(progName)) // invalid name
|
||||
return Path();
|
||||
if (temp.executable()) // already executable as is
|
||||
if (temp.canExecute()) // already executable as is
|
||||
return temp;
|
||||
|
||||
// At this point, the file name is valid and its not executable.
|
||||
@@ -101,7 +101,7 @@ Program::ExecuteAndWait(const Path& path,
|
||||
const char** envp,
|
||||
const Path** redirects,
|
||||
unsigned secondsToWait) {
|
||||
if (!path.executable())
|
||||
if (!path.canExecute())
|
||||
throw path.toString() + " is not executable";
|
||||
|
||||
// Windows wants a command line, not an array of args, to pass to the new
|
||||
|
Reference in New Issue
Block a user