diff options
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() |