diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-03-14 15:27:50 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-03-14 15:27:50 +0100 |
commit | c069b6f25578bfff9c6756be87f4b80ffbb7a62d (patch) | |
tree | 1dbdda1640860fcc46face9f83a23d50046db931 /src | |
parent | ceefa8481e11b83d42a0f7e3410fc81ed2b1078f (diff) | |
download | justbuild-c069b6f25578bfff9c6756be87f4b80ffbb7a62d.tar.gz |
LocalExecution: Create output dirs prior to execution
... to be consistent with the remote execution protocol.
Diffstat (limited to 'src')
-rw-r--r-- | src/buildtool/execution_api/local/local_action.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buildtool/execution_api/local/local_action.cpp b/src/buildtool/execution_api/local/local_action.cpp index 91ab0ba5..57a5bc54 100644 --- a/src/buildtool/execution_api/local/local_action.cpp +++ b/src/buildtool/execution_api/local/local_action.cpp @@ -191,6 +191,12 @@ auto LocalAction::CreateDirectoryStructure( return false; } } + for (auto const& local_path : output_dirs_) { + if (not FileSystemManager::CreateDirectory(exec_path / local_path)) { + logger_.Emit(LogLevel::Error, "failed to create output directory"); + return false; + } + } return true; } |