diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2016-11-03 09:13:44 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2016-11-03 09:13:44 +0800 |
commit | aa3ba5ab09b99ed72c467bdb39853a64e5cd8b38 (patch) | |
tree | 5ede0ec839963d2707cd79a61b773b46da9ddda8 | |
parent | 298e9a91cb95085a61dc3f04b892b82ada6e1e2e (diff) | |
download | tangerine-mcl-aa3ba5ab09b99ed72c467bdb39853a64e5cd8b38.tar.gz tangerine-mcl-aa3ba5ab09b99ed72c467bdb39853a64e5cd8b38.tar.zst tangerine-mcl-aa3ba5ab09b99ed72c467bdb39853a64e5cd8b38.zip |
disable sanitizer for arm
-rw-r--r-- | common.mk | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -6,6 +6,7 @@ endif ARCH?=$(shell arch) ifeq ($(ARCH),x86_64) CPU=x86-64 + INTEL=1 BIT=64 BIT_OPT=-m64 LOW_ASM_SRC=src/asm/low_x86-64.asm @@ -13,6 +14,7 @@ ifeq ($(ARCH),x86_64) endif ifeq ($(ARCH),x86) CPU=x86 + INTEL=1 BIT=32 BIT_OPT=-m32 LOW_ASM_SRC=src/asm/low_x86.asm @@ -32,8 +34,10 @@ MKDIR=mkdir -p RM=rm -rf ifeq ($(DEBUG),1) - CFLAGS+=-fsanitize=address - LDFLAGS+=-fsanitize=address + ifeq ($(INTEL),1) + CFLAGS+=-fsanitize=address + LDFLAGS+=-fsanitize=address + endif else CFLAGS_OPT+=-fomit-frame-pointer -DNDEBUG ifeq ($(CXX),clang++) @@ -46,7 +50,7 @@ else endif endif ifeq ($(MARCH),) - ifeq (x86,$(findstring x86,$(CPU))) + ifeq ($(INTEL),1) CFLAGS_OPT+=-march=native endif else |