summaryrefslogtreecommitdiff
path: root/src/task_ar.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_ar.cc
parentdcd084fa4abcde59d8e69c3fd24ec8685ad5065c (diff)
Add support for (optionally) explicitly declaring source language type in build configurations.
Diffstat (limited to 'src/task_ar.cc')
-rw-r--r--src/task_ar.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/task_ar.cc b/src/task_ar.cc
index e920571..d767912 100644
--- a/src/task_ar.cc
+++ b/src/task_ar.cc
@@ -58,7 +58,7 @@ TaskAR::TaskAR(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;