aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/detect_arch.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-02 12:09:19 -0500
committerJack Lloyd <[email protected]>2018-03-02 12:09:19 -0500
commit4b6f451b837ac487996592ae449ba2ef95a83456 (patch)
tree28879f01e10ce455ff42b7fa7ebf3a5f68115a93 /src/build-data/detect_arch.cpp
parente5a9aed2dd2723b7af502e454a23d1b4fa28fbbf (diff)
Add (untested) support for x32 build
Needed for Debian
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)