diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-23 21:13:39 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-23 21:13:39 +0200 |
commit | f834093a8904a076f248d0f7034b66bbe0a5087f (patch) | |
tree | 2b4deb11ecadc54c74fcd6c0ad03c1616e3d2bf6 /task.cc | |
parent | c21a9c55382b930ffeea5042aa7e0dd48b453c4a (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.cc | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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"; |