darwin.mk raw
1 build_darwin_CC:=$(shell xcrun -f clang) -isysroot$(shell xcrun --show-sdk-path)
2 build_darwin_CXX:=$(shell xcrun -f clang++) -isysroot$(shell xcrun --show-sdk-path)
3 build_darwin_AR:=$(shell xcrun -f ar)
4 build_darwin_RANLIB:=$(shell xcrun -f ranlib)
5 build_darwin_STRIP:=$(shell xcrun -f strip)
6 build_darwin_OBJDUMP:=$(shell xcrun -f objdump)
7 build_darwin_NM:=$(shell xcrun -f nm)
8 build_darwin_DSYMUTIL:=$(shell xcrun -f dsymutil)
9 build_darwin_SHA256SUM=shasum -a 256
10 build_darwin_DOWNLOAD=curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o
11
12 #darwin host on darwin builder. overrides darwin host preferences.
13 darwin_CC=$(shell xcrun -f clang) -isysroot$(shell xcrun --show-sdk-path)
14 darwin_CXX:=$(shell xcrun -f clang++) -stdlib=libc++ -isysroot$(shell xcrun --show-sdk-path)
15 darwin_AR:=$(shell xcrun -f ar)
16 darwin_RANLIB:=$(shell xcrun -f ranlib)
17 darwin_STRIP:=$(shell xcrun -f strip)
18 darwin_OBJDUMP:=$(shell xcrun -f objdump)
19 darwin_NM:=$(shell xcrun -f nm)
20 darwin_DSYMUTIL:=$(shell xcrun -f dsymutil)
21
22 x86_64_darwin_CFLAGS += -arch x86_64
23 x86_64_darwin_CXXFLAGS += -arch x86_64
24 aarch64_darwin_CFLAGS += -arch arm64
25 aarch64_darwin_CXXFLAGS += -arch arm64
26