diff options
| author | Bent Bisballe Nyeng <deva@aasimon.org> | 2026-01-27 19:42:57 +0100 |
|---|---|---|
| committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2026-01-27 19:42:57 +0100 |
| commit | 7b493a531decb401ab9b141dd2d7aa7d1338fbdf (patch) | |
| tree | 9343c843b5a4c2e8234f7a7e085ffc07ceb1ebad /src/task_so.cc | |
| parent | 282f90f717d93267b2bc64d8bfa4e3e2b7c21711 (diff) | |
Clean up target_type usage a bit and add new ctor::target_type::module type.modules
Diffstat (limited to 'src/task_so.cc')
| -rw-r--r-- | src/task_so.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/task_so.cc b/src/task_so.cc index 090105a..c8926eb 100644 --- a/src/task_so.cc +++ b/src/task_so.cc @@ -11,21 +11,19 @@ #include "util.h" #include "tools.h" -TaskSO::TaskSO(const ctor::build_configuration& config_, +TaskSO::TaskSO(ctor::target_type resolved_target_type, + const ctor::build_configuration& config_, const ctor::settings& settings_, const std::string& target, const std::vector<std::string>& objects, const std::string& sourceDir_) - : Task(config_, settings_, sourceDir_) + : Task(resolved_target_type, config_, settings_, sourceDir_) , config(config_) , settings(settings_) , sourceDir(sourceDir_) { std::filesystem::path base = sourceDir; - target_type = ctor::target_type::dynamic_library; - output_system = config.system; - _targetFile = base / target; auto toolchain = getToolChain(config.system); _targetFile = extension(toolchain, target_type, config.system, _targetFile); |
