diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-21 12:50:43 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-21 12:50:43 +0100 |
commit | e4ccfe780f52cdb6c0764074effcd60235d33762 (patch) | |
tree | cf23adbd17d9bada3fa470a84c541acf84f56737 /src/task_ar.cc | |
parent | abaf47c7b8fec08803d7b2deab3a4f13c2dfcb29 (diff) |
Make sure to create target directories as they appear in their actual (cleaned) form.
Diffstat (limited to 'src/task_ar.cc')
-rw-r--r-- | src/task_ar.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/task_ar.cc b/src/task_ar.cc index 9cd78d0..60f7dd1 100644 --- a/src/task_ar.cc +++ b/src/task_ar.cc @@ -21,8 +21,6 @@ TaskAR::TaskAR(const ctor::build_configuration& config, , settings(settings) , sourceDir(sourceDir) { - std::filesystem::create_directories(std::filesystem::path(settings.builddir) / sourceDir); - target_type = ctor::target_type::static_library; _targetFile = target; auto toolchain = getToolChain(config.system); @@ -52,6 +50,8 @@ TaskAR::TaskAR(const ctor::build_configuration& config, source_language = ctor::language::cpp; } } + + std::filesystem::create_directories(targetFile().parent_path()); } bool TaskAR::dirtyInner() |