summaryrefslogtreecommitdiff
path: root/tools/common/target_detect.h
diff options
context:
space:
mode:
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"