aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/llvm/Makefile
diff options
context:
space:
mode:
authorMagnus Lång <[email protected]>2017-03-30 12:01:53 +0200
committerMagnus Lång <[email protected]>2017-03-30 22:38:16 +0200
commitd9a6b8d2f761f6c16fd0772b65a3c4b6169f3b64 (patch)
tree80f30f8935ab775fb2fd4aef51467699ab584cf8 /lib/hipe/llvm/Makefile
parent6d8c39229231c9cdaa977dfbd8bf0b12ec97ebaa (diff)
downloadotp-d9a6b8d2f761f6c16fd0772b65a3c4b6169f3b64.tar.gz
otp-d9a6b8d2f761f6c16fd0772b65a3c4b6169f3b64.tar.bz2
otp-d9a6b8d2f761f6c16fd0772b65a3c4b6169f3b64.zip
Fix ErLLVM in --enable-m32-build builds
By having ErLLVM explicitly tell LLVM which architecture we're expecting it to compile for we remove the risk of having LLVM generate amd64 code for a x86 VM.
Diffstat (limited to 'lib/hipe/llvm/Makefile')
-rw-r--r--lib/hipe/llvm/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/hipe/llvm/Makefile b/lib/hipe/llvm/Makefile
index 88016a7d8b..e8d9a0e8bb 100644
--- a/lib/hipe/llvm/Makefile
+++ b/lib/hipe/llvm/Makefile
@@ -73,8 +73,7 @@ include ../native.mk
ERL_COMPILE_FLAGS += -Werror +inline +warn_export_vars #+warn_missing_spec
# if in 32 bit backend define BIT32 symbol
-ARCH = $(shell echo $(TARGET) | sed 's/^\(x86_64\)-.*/64bit/')
-ifneq ($(ARCH), 64bit)
+ifneq ($(BITS64),yes)
ERL_COMPILE_FLAGS += -DBIT32
endif