This commit is contained in:
Jacob Heider 2023-10-12 16:22:28 -04:00 committed by Jacob Heider
parent 41bf90c554
commit 2518cb2893

View file

@ -100,8 +100,6 @@ build:
CFLAGS: $CFLAGS -fPIC
CXXFLAGS: $CXXFLAGS -fPIC
darwin:
# just so we don't step on it
LD: /usr/bin/ld
ARGS:
# Reliance on CLT hard path is yuck.
- --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
@ -112,6 +110,12 @@ build:
darwin/x86-64:
ARGS:
- --build=x86_64-apple-darwin20.0.0
# llvm-as generates __compact_unwind sections, even when told not to. this causes build errors
# for ^10 on darwin+x86-64
# https://stackoverflow.com/questions/52211390/trouble-building-gcc-on-mac-cant-find-system-headers
BOOT_CFLAGS: -Wa,-mmacos-version-min=10.5
CFLAGS_FOR_TARGET: -Wa,-mmacos-version-min=10.5
and CXXFLAGS_FOR_TARGET: -Wa,-mmacos-version-min=10.5
test:
- gcc --version | grep -q "tea GCC {{version}}"