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_ld.cc | |
parent | abaf47c7b8fec08803d7b2deab3a4f13c2dfcb29 (diff) |
Make sure to create target directories as they appear in their actual (cleaned) form.
Diffstat (limited to 'src/task_ld.cc')
-rw-r--r-- | src/task_ld.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/task_ld.cc b/src/task_ld.cc index a98ef44..b7e8749 100644 --- a/src/task_ld.cc +++ b/src/task_ld.cc @@ -27,8 +27,6 @@ TaskLD::TaskLD(const ctor::build_configuration& config, target_type = ctor::target_type::executable; } - std::filesystem::create_directories(std::filesystem::path(settings.builddir) / sourceDir); - _targetFile = target; auto toolchain = getToolChain(config.system); _targetFile = extension(toolchain, target_type, config.system, _targetFile); @@ -56,6 +54,8 @@ TaskLD::TaskLD(const ctor::build_configuration& config, source_language = ctor::language::cpp; } } + + std::filesystem::create_directories(targetFile().parent_path()); } bool TaskLD::dirtyInner() |