summaryrefslogtreecommitdiff
path: root/src/task_ld.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-08-21 12:38:35 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-08-21 12:50:45 +0200
commitc8e7d8922310108f2d46189a8f48abcb68e72534 (patch)
treed29ae8b8da4e10a88344f0412cc7bb3ea0539344 /src/task_ld.cc
parent33f70be85ef83b0ebeaa6755b67558ae2f5ae8e6 (diff)
WIP: Deferred linking of self
Diffstat (limited to 'src/task_ld.cc')
-rw-r--r--src/task_ld.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/task_ld.cc b/src/task_ld.cc
index ba1eb1b..3d89f90 100644
--- a/src/task_ld.cc
+++ b/src/task_ld.cc
@@ -15,11 +15,12 @@ TaskLD::TaskLD(const BuildConfiguration& config,
const Settings& settings,
const std::string& target,
const std::vector<std::string>& objects,
- const std::string& sourceDir)
+ const std::string& sourceDir, bool is_self)
: Task(config, settings, sourceDir)
, config(config)
, settings(settings)
, sourceDir(sourceDir)
+ , is_self(is_self)
{
target_type = config.type;
if(target_type == TargetType::Auto)
@@ -117,7 +118,7 @@ int TaskLD::runInner()
auto tool = linker();
const auto& cfg = configuration();
- return execute(tool, args, cfg.env, settings.verbose > 0);
+ return execute(tool, args, cfg.env, settings.verbose > 0, is_self);
}
int TaskLD::clean()