summaryrefslogtreecommitdiff
path: root/task_ld.cc
diff options
context:
space:
mode:
Diffstat (limited to 'task_ld.cc')
-rw-r--r--task_ld.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/task_ld.cc b/task_ld.cc
index 7bf68ed..cd1dea3 100644
--- a/task_ld.cc
+++ b/task_ld.cc
@@ -66,13 +66,13 @@ TaskLD::TaskLD(const BuildConfiguration& config,
flagsFile += ".flags";
target_type = TargetType::Executable;
- _language = Language::C;
+ source_language = Language::C;
for(const auto& source : config.sources)
{
std::filesystem::path sourceFile(source);
if(sourceFile.extension().string() != ".c")
{
- _language = Language::Cpp;
+ source_language = Language::Cpp;
}
}
}
@@ -159,12 +159,7 @@ int TaskLD::runInner()
std::cout << "LD => " << targetFile.string() << "\n";
}
- auto tool = getConfiguration("host-cpp", "/usr/bin/g++");
- if(language() == Language::C)
- {
- tool = getConfiguration("host-cc", "/usr/bin/gcc");
- }
-
+ auto tool = compiler();
return execute(tool, args, settings.verbose > 0);
}