Bugfix - CFLAGS += instead of CFLAGS = because it would get overwritten otherwise.
Also allow overwriting of XCODE_PATH for non-standard path.
Download the 10.13 SDK from
https://github.com/phracker/MacOSX-SDKs/releases
```bash
wget https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.13.sdk.tar.xz
xz --uncompress MacOSX10.13.sdk.tar.xz
tar xvf MacOSX10.13.sdk.tar
mv MacOSX10.13.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
```
CXX=$(SHELL_CXX)
endif
+ XCODE_PATH ?= /Applications/Xcode.app
+
include $(CONFIG)
- CFLAGS = -Wall \
+ CFLAGS += -Wall \
-pedantic \
-DFACTOR_VERSION="$(VERSION)" \
-DFACTOR_GIT_LABEL="$(GIT_LABEL)" \
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