summaryrefslogtreecommitdiff
path: root/task_ar.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-23 21:13:39 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-23 21:13:39 +0200
commitf834093a8904a076f248d0f7034b66bbe0a5087f (patch)
tree2b4deb11ecadc54c74fcd6c0ad03c1616e3d2bf6 /task_ar.cc
parentc21a9c55382b930ffeea5042aa7e0dd48b453c4a (diff)
Add configure checks for programs and be more consistent with the use of the phrases build and host systems (inspired by autotools).
Diffstat (limited to 'task_ar.cc')
-rw-r--r--task_ar.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/task_ar.cc b/task_ar.cc
index a183102..bcaa010 100644
--- a/task_ar.cc
+++ b/task_ar.cc
@@ -146,12 +146,12 @@ int TaskAR::runInner()
std::string tool;
switch(outputSystem())
{
- case OutputSystem::Target:
- tool = getConfiguration(cfg::target_ar, "/usr/bin/ar");
- break;
- case OutputSystem::BuildHost:
+ case OutputSystem::Host:
tool = getConfiguration(cfg::host_ar, "/usr/bin/ar");
break;
+ case OutputSystem::Build:
+ tool = getConfiguration(cfg::build_ar, "/usr/bin/ar");
+ break;
}
return execute(tool, args, settings.verbose > 0);