summaryrefslogtreecommitdiff
path: root/src/task_ld.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/task_ld.cc')
-rw-r--r--src/task_ld.cc4
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()