From 9da7f08eb0f34f52561a62d7cf1004621b7d83c2 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 16 Jan 2023 17:51:57 +0100 Subject: Make file extensions abstract based on tool-chain type. --- src/task_cc.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/task_cc.cc') diff --git a/src/task_cc.cc b/src/task_cc.cc index 56915f5..f16a07f 100644 --- a/src/task_cc.cc +++ b/src/task_cc.cc @@ -56,12 +56,14 @@ TaskCC::TaskCC(const ctor::build_configuration& config, const ctor::settings& se if(source.output.empty()) { _targetFile = base; - _targetFile += ".o"; } else { _targetFile = source.output; } + auto toolchain = getToolChain(config.system); + _targetFile = extension(toolchain, target_type, _targetFile); + depsFile = targetFile().parent_path() / targetFile().stem(); depsFile += ".d"; flagsFile = targetFile().parent_path() / targetFile().stem(); -- cgit v1.2.3