Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

iOS: building for arm64/aarch64 #8

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions make/platform/triple.mk
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ ifeq ($(TargetTriple),arm-linux-androideabi)
sync_fetch_and_umin_8
endif

ArchEnabledFunctions := $(filter-out $(ArchDisabledFunctions),$(value ArchFunctions.$(Arch)))
# Clear cache is builtin on aarch64-apple-ios
# arm64 and aarch64 are synonims, but iOS targets usually use arm64 (history reasons)
ifeq (aarch64-apple-ios,$(subst arm64,aarch64,$(TargetTriple)))
CommonDisabledFunctions := clear_cache
endif

FUNCTIONS.builtins := $(CommonFunctions_gcc) $(ArchEnabledFunctions)
ArchEnabledFunctions := $(filter-out $(ArchDisabledFunctions),$(value ArchFunctions.$(Arch)))
CommonEnabledFunctions := $(filter-out $(CommonDisabledFunctions),$(CommonFunctions_gcc))

FUNCTIONS.builtins := $(CommonEnabledFunctions) $(ArchEnabledFunctions)