summaryrefslogtreecommitdiff
path: root/src/task_cc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/task_cc.cc')
-rw-r--r--src/task_cc.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/task_cc.cc b/src/task_cc.cc
index eb361cb..dfda75d 100644
--- a/src/task_cc.cc
+++ b/src/task_cc.cc
@@ -129,6 +129,9 @@ TaskCC::TaskCC(const BuildConfiguration& config, const Settings& settings,
sourceFile /= source.file;
std::filesystem::path base = settings.builddir;
+ base /= sourceFile.parent_path();
+ std::filesystem::create_directories(base);
+
base /= config.target;
base += "-";
base += sourceFile.stem();