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_SHA256SUM=shasum -a 256
   9  build_darwin_DOWNLOAD=curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o
  10  
  11  #darwin host on darwin builder. overrides darwin host preferences.
  12  darwin_CC=$(shell xcrun -f clang) -isysroot$(shell xcrun --show-sdk-path)
  13  darwin_CXX:=$(shell xcrun -f clang++) -stdlib=libc++ -isysroot$(shell xcrun --show-sdk-path)
  14  darwin_AR:=$(shell xcrun -f ar)
  15  darwin_RANLIB:=$(shell xcrun -f ranlib)
  16  darwin_STRIP:=$(shell xcrun -f strip)
  17  darwin_OBJDUMP:=$(shell xcrun -f objdump)
  18  darwin_NM:=$(shell xcrun -f nm)
  19  
  20  x86_64_darwin_CFLAGS += -arch x86_64
  21  x86_64_darwin_CXXFLAGS += -arch x86_64
  22  aarch64_darwin_CFLAGS += -arch arm64
  23  aarch64_darwin_CXXFLAGS += -arch arm64
  24