summaryrefslogtreecommitdiff
path: root/src/task_so.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-09-25 11:06:50 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-09-25 11:14:36 +0200
commit019ee9f3026a419cd25916974d32fe1ebcff9578 (patch)
tree0e4edbdc40db6cff21d85613decb176ad2dd5378 /src/task_so.cc
parentdcd084fa4abcde59d8e69c3fd24ec8685ad5065c (diff)
Add support for (optionally) explicitly declaring source language type in build configurations.
Diffstat (limited to 'src/task_so.cc')
-rw-r--r--src/task_so.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/task_so.cc b/src/task_so.cc
index 5623bcf..863b80a 100644
--- a/src/task_so.cc
+++ b/src/task_so.cc
@@ -57,7 +57,7 @@ TaskSO::TaskSO(const BuildConfiguration& config,
source_language = Language::C;
for(const auto& source : config.sources)
{
- std::filesystem::path sourceFile(source);
+ std::filesystem::path sourceFile(source.file);
if(sourceFile.extension().string() != ".c")
{
source_language = Language::Cpp;