diff options
author | Howard Chu <hyc@symas.com> | 2022-05-03 15:51:34 +0100 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2022-05-04 22:33:40 +0100 |
commit | a86c4cb75ffb577922334cf6e212bcd5bac1716d (patch) | |
tree | f520bee7427d827cc69330bf1b4477b1b57cc8a3 /contrib/depends/hosts/darwin.mk | |
parent | Merge pull request #8275 (diff) | |
download | monero-a86c4cb75ffb577922334cf6e212bcd5bac1716d.tar.xz |
Update to MacOSX SDK 11.1, add Mac M1
Diffstat (limited to 'contrib/depends/hosts/darwin.mk')
-rw-r--r-- | contrib/depends/hosts/darwin.mk | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/contrib/depends/hosts/darwin.mk b/contrib/depends/hosts/darwin.mk index 7b5c8b051..0b6582003 100644 --- a/contrib/depends/hosts/darwin.mk +++ b/contrib/depends/hosts/darwin.mk @@ -1,9 +1,14 @@ OSX_MIN_VERSION=10.8 -OSX_SDK_VERSION=10.11 +OSX_SDK_VERSION=11.1 OSX_SDK=$(SDK_PATH)/MacOSX$(OSX_SDK_VERSION).sdk LD64_VERSION=253.9 -darwin_CC=clang -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION) -B $(host_prefix)/native/bin -darwin_CXX=clang++ -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION) -stdlib=libc++ -B $(host_prefix)/native/bin +ifeq (aarch64, $(host_arch)) +CC_target=arm64-apple-darwin11 +else +CC_target=$(host) +endif +darwin_CC=clang -target $(CC_target) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION) -B$(host_prefix)/native/bin/$(host)- +darwin_CXX=clang++ -target $(CC_target) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysroot $(OSX_SDK) -mlinker-version=$(LD64_VERSION) -stdlib=libc++ -B$(host_prefix)/native/bin/$(host)- darwin_CFLAGS=-pipe darwin_CXXFLAGS=$(darwin_CFLAGS) |