Skip to content

Commit

Permalink
Remove -sdk_version to fix build with Xcode 15 & SDK 14.0
Browse files Browse the repository at this point in the history
Doesn't work anymore with Xcode 15 & SDK 14.0:
ld: unknown options: -sdk_version

Change-Id: I2d88bba71e0dcf50036e28078a5cc4d6197df139
  • Loading branch information
AlienCowEatCake committed Jan 2, 2024
1 parent 584e215 commit c69444b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mkspecs/features/mac/default_post.prf
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,12 @@ macx-xcode {
QMAKE_PCH_OUTPUT_EXT = _${QMAKE_PCH_ARCH}$${QMAKE_PCH_OUTPUT_EXT}
}

!equals(sdk_version, $$QMAKE_MAC_SDK_VERSION) {
# Explicit SDK version has been set, respect that
QMAKE_LFLAGS += -Wl,-sdk_version -Wl,$$sdk_version
}
# TODO: FIXME: Doesn't work anymore with Xcode 15 & SDK 14.0:
# ld: unknown options: -sdk_version
#!equals(sdk_version, $$QMAKE_MAC_SDK_VERSION) {
# # Explicit SDK version has been set, respect that
# QMAKE_LFLAGS += -Wl,-sdk_version -Wl,$$sdk_version
#}

cache(QMAKE_XCODE_DEVELOPER_PATH, stash)
!isEmpty(QMAKE_XCODE_VERSION): \
Expand Down

0 comments on commit c69444b

Please sign in to comment.