summaryrefslogtreecommitdiff
path: root/tools/common/target_detect.h
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2019-02-23 12:33:35 +0800
committerJohn Hodge <tpg@mutabah.net>2019-02-23 12:33:35 +0800
commit0158e0e303cf2b9ba38a8e482df9bacb4fd4c779 (patch)
treec7cf3d8d0c7492b425bf94fd9b4d8eefecea9794 /tools/common/target_detect.h
parent80c2add7b04e6e202d9a4f3b3c25ec498e3b5893 (diff)
parent7d728e447d70d79e93c01a7c51efbd61be09d68f (diff)
downloadmrust-0158e0e303cf2b9ba38a8e482df9bacb4fd4c779.tar.gz
Merge branch 'master' of ssh://github.com/thepowersgang/mrustc
Diffstat (limited to 'tools/common/target_detect.h')
-rw-r--r--tools/common/target_detect.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/common/target_detect.h b/tools/common/target_detect.h
index 0812c363..1bfc7dd9 100644
--- a/tools/common/target_detect.h
+++ b/tools/common/target_detect.h
@@ -75,6 +75,15 @@
// - Apple devices
#elif defined(__APPLE__)
# define DEFAULT_TARGET_NAME "x86_64-apple-macosx"
+// - Haiku
+#elif defined(__HAIKU__)
+# if defined(__x86_64__)
+# define DEFAULT_TARGET_NAME "x86_64-unknown-haiku"
+# elif defined(__arm__)
+# define DEFAULT_TARGET_NAME "arm-unknown-haiku"
+# else
+# warning "Unable to detect a suitable default target (Haiku)"
+# endif
// - Unknown
#else
# warning "Unable to detect a suitable default target"