On FreeBSD "x86_64" is spelled "amd64"

llvm-svn: 201802
This commit is contained in:
Ed Maste 2014-02-20 18:40:01 +00:00
parent 259c617888
commit 4fe0aba12b
1 changed files with 4 additions and 1 deletions

View File

@ -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