File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -45,15 +45,22 @@ function build_host_hermesc {
45
45
46
46
# Utility function to configure an Apple framework
47
47
function configure_apple_framework {
48
- local build_cli_tools
48
+ local build_cli_tools xcode_15_flags xcode_major_version
49
49
50
50
if [[ $1 == macosx ]]; then
51
51
build_cli_tools=" true"
52
52
else
53
53
build_cli_tools=" false"
54
54
fi
55
55
56
+ xcode_15_flags=" "
57
+ xcode_major_version=$( xcodebuild -version | grep -oE ' [0-9]*' | head -n 1)
58
+ if [[ $xcode_major_version -ge 15 ]]; then
59
+ xcode_15_flags=" LINKER:-ld_classic"
60
+ fi
61
+
56
62
cmake -S . -B " build_$1 " -G " $BUILD_SYSTEM " \
63
+ -DHERMES_EXTRA_LINKER_FLAGS=" $xcode_15_flags " \
57
64
-DHERMES_APPLE_TARGET_PLATFORM:STRING=" $1 " \
58
65
-DCMAKE_OSX_ARCHITECTURES:STRING=" $2 " \
59
66
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=" $3 " \
You can’t perform that action at this time.
0 commit comments