summaryrefslogtreecommitdiff
path: root/task.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.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.cc')
-rw-r--r--task.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/task.cc b/task.cc
index 70d0b76..5a08a47 100644
--- a/task.cc
+++ b/task.cc
@@ -115,18 +115,18 @@ std::string Task::compiler() const
case Language::C:
switch(outputSystem())
{
- case OutputSystem::Target:
- return getConfiguration(cfg::target_cc, "/usr/bin/gcc");
- case OutputSystem::BuildHost:
+ case OutputSystem::Host:
return getConfiguration(cfg::host_cc, "/usr/bin/gcc");
+ case OutputSystem::Build:
+ return getConfiguration(cfg::build_cc, "/usr/bin/gcc");
}
case Language::Cpp:
switch(outputSystem())
{
- case OutputSystem::Target:
- return getConfiguration(cfg::target_cpp, "/usr/bin/g++");
- case OutputSystem::BuildHost:
- return getConfiguration(cfg::host_cpp, "/usr/bin/g++");
+ case OutputSystem::Host:
+ return getConfiguration(cfg::host_cxx, "/usr/bin/g++");
+ case OutputSystem::Build:
+ return getConfiguration(cfg::build_cxx, "/usr/bin/g++");
}
default:
std::cerr << "Unknown CC target type\n";