mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Detect ARC when using apple runtime
This commit is contained in:
parent
3ff4ee8a05
commit
16a68def84
1 changed files with 13 additions and 0 deletions
13
rules.make
13
rules.make
|
@ -204,7 +204,20 @@ ifeq ($(AUTO_DEPENDENCIES_FLAGS),)
|
|||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
# Detect ARC support
|
||||
ifeq ($(OBJC_RUNTIME_LIB), ng)
|
||||
GS_RUNTIME_HAS_ARC = 1
|
||||
endif
|
||||
ifeq ($(OBJC_RUNTIME_LIB), apple)
|
||||
DARWIN_VERSION = $(patsubst darwin%,%,$(filter darwin%, $(GNUSTEP_TARGET_OS)))
|
||||
# Initial release of ARC in darwin10
|
||||
ifeq ($(shell echo "$(DARWIN_VERSION) >= 10" | bc), 1)
|
||||
GS_RUNTIME_HAS_ARC = 1
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(GS_RUNTIME_HAS_ARC),)
|
||||
# Projects may control the use of ARC by defining GS_WITH_ARC=1
|
||||
# or GS_WITH_ARC=0 in their GNUmakefile, or in the environment,
|
||||
# or as an argument to the 'make' command.
|
||||
|
|
Loading…
Reference in a new issue