forked from OSchip/llvm-project
parent
3a6b091c23
commit
b3c6541c2c
|
@ -362,8 +362,9 @@ Error ProcessFreeBSD::DoLaunch(Module *module, ProcessLaunchInfo &launch_info) {
|
||||||
assert(m_monitor == NULL);
|
assert(m_monitor == NULL);
|
||||||
|
|
||||||
FileSpec working_dir = launch_info.GetWorkingDirectory();
|
FileSpec working_dir = launch_info.GetWorkingDirectory();
|
||||||
if (working_dir &&
|
namespace fs = llvm::sys::fs;
|
||||||
(!working_dir.ResolvePath() || !llvm::sys::fs::is_directory(working_dir.GetPath())) {
|
if (working_dir && (!working_dir.ResolvePath() ||
|
||||||
|
!fs::is_directory(working_dir.GetPath()))) {
|
||||||
error.SetErrorStringWithFormat("No such file or directory: %s",
|
error.SetErrorStringWithFormat("No such file or directory: %s",
|
||||||
working_dir.GetCString());
|
working_dir.GetCString());
|
||||||
return error;
|
return error;
|
||||||
|
|
Loading…
Reference in New Issue