make: Allow overriding macosx sdk
MACOSX_SDK=MacOSX10.11.sdk ./build.sh update macosx-x86-32windows-drag
parent
60c80e4b78
commit
5609370be6
|
@ -14,6 +14,7 @@ ifdef CONFIG
|
|||
endif
|
||||
|
||||
XCODE_PATH ?= /Applications/Xcode.app
|
||||
MACOSX_SDK ?= MacOSX10.13.sdk
|
||||
|
||||
include $(CONFIG)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
include vm/Config.macosx
|
||||
include vm/Config.x86.32
|
||||
|
||||
# The last SDK to support x86
|
||||
CFLAGS += --sysroot=$(XCODE_PATH)/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
|
||||
CXXFLAGS += --sysroot=$(XCODE_PATH)/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
|
||||
# The last SDK to support x86 is 10.13
|
||||
CFLAGS += --sysroot=$(XCODE_PATH)/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/$(MACOSX_SDK)
|
||||
CXXFLAGS += --sysroot=$(XCODE_PATH)/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/$(MACOSX_SDK)
|
||||
|
|
Loading…
Reference in New Issue