diff options
Diffstat (limited to 'src/task_ar.cc')
-rw-r--r-- | src/task_ar.cc | 4 |
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(); |