mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Adjust ExecuteInPlace() so that it calls exit() on success on platforms where native re-execution is not implemented.
Swift SVN r12606
This commit is contained in:
@@ -33,6 +33,9 @@ int swift::ExecuteInPlace(const char *Program, const char **args,
|
||||
|
||||
return result;
|
||||
#else
|
||||
return llvm::sys::ExecuteAndWait(Program, args, env);
|
||||
int result = llvm::sys::ExecuteAndWait(Program, args, env);
|
||||
if (result >= 0)
|
||||
exit(result);
|
||||
return result;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user