Skip to content

Commit

Permalink
Remove __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ manual definition
Browse files Browse the repository at this point in the history
LLVM 17 does this automatically
  • Loading branch information
HeavenVolkoff authored Apr 23, 2024
1 parent 10853a4 commit a273660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ case "$TARGET" in
FFLAGS="${FFLAGS} -fstack-check"

# https://github.com/tpoechtrager/osxcross/commit/3279f86
CFLAGS="${CFLAGS} -D__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__=$(LC_ALL=C printf '%.2f' "11.0" | tr -d '.') -mmacos-version-min=${MACOSX_DEPLOYMENT_TARGET} -mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}"
CFLAGS="${CFLAGS} -mmacos-version-min=${MACOSX_DEPLOYMENT_TARGET} -mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}"
LDFLAGS="-fuse-ld=$(command -v "${APPLE_TARGET:?}-ld") -L${SDKROOT}/usr/lib -L${SDKROOT}/usr/lib/system -F${SDKROOT}/System/Library/Frameworks ${LDFLAGS}"
;;
*windows*)
Expand Down

0 comments on commit a273660

Please sign in to comment.