mirror of
https://github.com/capstone-engine/capstone.git
synced 2025-02-17 04:49:46 +00:00
Add missing arm64 to Darwin LIBARCHS and remove dependencies tracking if building universal binary (dependencies not compatible with fat binaries)
This commit is contained in:
parent
7fbfce7aee
commit
9f6fa17928
2
Makefile
2
Makefile
@ -10,7 +10,7 @@ V ?= 0
|
||||
|
||||
OS := $(shell uname)
|
||||
ifeq ($(OS),Darwin)
|
||||
LIBARCHS ?= x86_64
|
||||
LIBARCHS ?= x86_64 arm64
|
||||
PREFIX ?= /usr/local
|
||||
endif
|
||||
|
||||
|
@ -2,7 +2,9 @@
|
||||
# Common functions used by Makefile & tests/Makefile
|
||||
|
||||
define compile
|
||||
@$(CC) -MM -MP -MT $@ -MT $(@:.o=.d) $(CFLAGS) $< > $(@:.o=.d)
|
||||
$(ifeq ($(MACOS_UNIVERSAL),no),
|
||||
@$(CC) -MM -MP -MT $@ -MT $(@:.o=.d) $(CFLAGS) $< > $(@:.o=.d)
|
||||
)
|
||||
${CC} ${CFLAGS} -c $< -o $@
|
||||
endef
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user