aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorcomex2015-02-03 02:52:51 -0500
committercomex2015-02-03 02:52:51 -0500
commitc6c8f4abdabd58f9210e5e06c64a6fc36dbc709c (patch)
treebfa2b8577a9e9e5b99c967be0ae1722ce68d6df1 /Makefile
parentwhoops, don't mean to always jump to thumb mode (diff)
downloadsubstitute-c6c8f4abdabd58f9210e5e06c64a6fc36dbc709c.tar.gz
fix ARM64 too, theoretically
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7cca0d2..1ebe805 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ ARCH := -arch x86_64
XCFLAGS := -g -O3 -Wall -Wextra -Werror -Ilib $(ARCH)
LIB_LDFLAGS := -lobjc -dynamiclib -fvisibility=hidden -install_name /usr/lib/libsubstitute.0.dylib -dead_strip
IOS_APP_LDFLAGS := -framework UIKit -framework Foundation -dead_strip
+IS_IOS := $(findstring -arch arm,$(CC) $(CFLAGS) $(XCFLAGS))
ifneq (,$(IS_IOS))
# I don't know anything in particular that would break this on older versions,
# but I don't have any good way to test it and don't really care. So ensure it
@@ -16,7 +17,6 @@ XCFLAGS := $(XCFLAGS) -miphoneos-version-min=7.0
endif
override CC := $(CC) $(XCFLAGS) $(CFLAGS)
override CXX := $(CXX) $(XCFLAGS) $(CFLAGS) -fno-exceptions -fno-asynchronous-unwind-tables
-IS_IOS := $(findstring -arch arm,$(CC))
# These are only required to rebuild the generated disassemblers.
IMAON2 := /Users/comex/c/imaon2