summaryrefslogtreecommitdiff
path: root/src/ctor.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-19 14:22:51 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-19 14:22:51 +0100
commit3cbadb8f5c55020ece96fab0fc8f4f51da01888e (patch)
tree8c2bf1a8bd5426c6f99cf91d1811a10f3999a477 /src/ctor.h
parent79c11f3dbaad391633c2678e85eeaba267df5ee1 (diff)
Make extension deduction architecture-aware.
Diffstat (limited to 'src/ctor.h')
-rw-r--r--src/ctor.h12
1 files changed, 12 insertions, 0 deletions
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<std::string> args; // vector of arguments used when last calling configure
std::map<std::string, std::string> env; // env used when last calling configure