From 3cbadb8f5c55020ece96fab0fc8f4f51da01888e Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 19 Jan 2023 14:22:51 +0100 Subject: Make extension deduction architecture-aware. --- src/ctor.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/ctor.h') diff --git a/src/ctor.h b/src/ctor.h index 4e0a247..ab486a5 100644 --- a/src/ctor.h +++ b/src/ctor.h @@ -43,6 +43,15 @@ enum class output_system build, // Internal tool during cross-compilation }; +enum class arch +{ + unix, //!< Target platform architecture is unix-based (ie. linux, bsd, etc) + apple, //!< Target platform architecture is macos + windows, //!< Target platform architecture is windows + + unknown, //!< Target platform architecture has not yet detected or was not possible to detect +}; + struct source { source(const char* file) : file(file) {} @@ -256,7 +265,10 @@ struct configuration const std::string& get(const std::string& key, const std::string& default_value = {}) const; ctor::toolchain host_toolchain{ctor::toolchain::none}; + ctor::arch host_arch{ctor::arch::unknown}; + ctor::toolchain build_toolchain{ctor::toolchain::none}; + ctor::arch build_arch{ctor::arch::unknown}; std::vector args; // vector of arguments used when last calling configure std::map env; // env used when last calling configure -- cgit v1.2.3