From 019ee9f3026a419cd25916974d32fe1ebcff9578 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 25 Sep 2021 11:06:50 +0200 Subject: Add support for (optionally) explicitly declaring source language type in build configurations. --- src/task_ar.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/task_ar.cc') 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; -- cgit v1.2.3