From f834093a8904a076f248d0f7034b66bbe0a5087f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 23 Jun 2021 21:13:39 +0200 Subject: Add configure checks for programs and be more consistent with the use of the phrases build and host systems (inspired by autotools). --- libcppbuild.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libcppbuild.h') diff --git a/libcppbuild.h b/libcppbuild.h index 9ea3fb1..d0a0080 100644 --- a/libcppbuild.h +++ b/libcppbuild.h @@ -26,15 +26,15 @@ enum class Language enum class OutputSystem { - Target, // Output for the target system - BuildHost, // Internal tool during cross-compilation + Host, // Output for the target system + Build, // Internal tool during cross-compilation }; struct BuildConfiguration { TargetType type{TargetType::Auto}; Language language{Language::Auto}; - OutputSystem system{OutputSystem::Target}; + OutputSystem system{OutputSystem::Host}; std::string target; std::vector sources; // source list std::vector depends; // internal dependencies @@ -59,15 +59,15 @@ namespace cfg { constexpr auto builddir = "builddir"; -constexpr auto target_cc = "target-cc"; -constexpr auto target_cpp = "target-cpp"; -constexpr auto target_ar = "target-ar"; -constexpr auto target_ld = "target-ld"; - constexpr auto host_cc = "host-cc"; -constexpr auto host_cpp = "host-cpp"; +constexpr auto host_cxx = "host-cpp"; constexpr auto host_ar = "host-ar"; constexpr auto host_ld = "host-ld"; + +constexpr auto build_cc = "build-cc"; +constexpr auto build_cxx = "build-cpp"; +constexpr auto build_ar = "build-ar"; +constexpr auto build_ld = "build-ld"; } const std::map& configuration(); -- cgit v1.2.3