summaryrefslogtreecommitdiff
path: root/src/task_ar.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2024-12-09 20:02:33 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2024-12-09 20:28:00 +0100
commit4f3422c58ed4fc14b222cd474843affb9cc509c4 (patch)
tree5d6079f5309fabf553119fad5b01779c6a8097d0 /src/task_ar.cc
parent5ba36c7be0a12b9b052fb172a209d3b6dffc9a99 (diff)
Various clang-tidy fixes.
Diffstat (limited to 'src/task_ar.cc')
-rw-r--r--src/task_ar.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/task_ar.cc b/src/task_ar.cc
index b15ad4e..25a49a2 100644
--- a/src/task_ar.cc
+++ b/src/task_ar.cc
@@ -17,6 +17,7 @@ TaskAR::TaskAR(const ctor::build_configuration& config,
const std::vector<std::string>& objects,
const std::string& sourceDir)
: Task(config, settings, sourceDir)
+ , _targetFile(target)
, config(config)
, settings(settings)
, sourceDir(sourceDir)
@@ -24,7 +25,6 @@ TaskAR::TaskAR(const ctor::build_configuration& config,
target_type = ctor::target_type::static_library;
output_system = config.system;
- _targetFile = target;
auto toolchain = getToolChain(config.system);
_targetFile = extension(toolchain, target_type, config.system, _targetFile);
for(const auto& object : objects)
@@ -36,7 +36,7 @@ TaskAR::TaskAR(const ctor::build_configuration& config,
for(const auto& dep : config.depends)
{
- depFiles.push_back(dep);
+ depFiles.emplace_back(dep);
}
flagsFile = std::filesystem::path(settings.builddir) / cleanUp(sourceDir) / targetFile().stem();