aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/detect_arch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/build-data/detect_arch.cpp')
-rw-r--r--src/build-data/detect_arch.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/build-data/detect_arch.cpp b/src/build-data/detect_arch.cpp
index 577b73ada..f5e6ecd58 100644
--- a/src/build-data/detect_arch.cpp
+++ b/src/build-data/detect_arch.cpp
@@ -1,5 +1,8 @@
-#if defined(__x86_64__) || defined(_M_X64)
+#if defined(__x86_64__) && defined(__ILP32__)
+ X32
+
+#elif defined(__x86_64__) || defined(_M_X64)
X86_64
#elif defined(__i386__) || defined(__i386) || defined(_M_IX86)