summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/make/Makefile.rules5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/test/make/Makefile.rules b/lldb/test/make/Makefile.rules
index 99484a6b6a6..52e7555cca1 100644
--- a/lldb/test/make/Makefile.rules
+++ b/lldb/test/make/Makefile.rules
@@ -73,7 +73,10 @@ else
# On non-Apple platforms, -arch becomes -m
ARCHFLAG := -m
- # i386 becomes 32, and x86_64 becomes 64
+ # i386 becomes 32, and amd64 or x86_64 becomes 64
+ ifeq "$(ARCH)" "amd64"
+ override ARCH := $(subst amd64,64,$(ARCH))
+ endif
ifeq "$(ARCH)" "x86_64"
override ARCH := $(subst x86_64,64,$(ARCH))
endif
OpenPOWER on IntegriCloud