Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 4f0e8e2

Browse files
committed
[[ Bug 23176 ]] Ensure the target MacOS SDK (10.9) is properly set
This patch ensures that hardened runtime will not block externals from launching. This happened because the target sdk version was not set in the externals after building with Xcode12+. Note: Xcode uses clang to drive ld - '-Wl', means pass this option to the linker direct
1 parent 9fe8617 commit 4f0e8e2

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

config/mac.gypi

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'STRIP_INSTALLED_PRODUCT': 'NO',
3131
'CLANG_LINK_OBJC_RUNTIME': 'NO',
3232
'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
33-
'CLANG_CXX_LIBRARY': 'libc++'
33+
'CLANG_CXX_LIBRARY': 'libc++'
3434
},
3535

3636
'target_defaults':
@@ -47,6 +47,7 @@
4747
'debug_info_suffix': '.dSYM',
4848

4949
'silence_warnings': 0,
50+
'travis': '<!(echo ${TRAVIS})',
5051
},
5152

5253
'target_conditions':
@@ -70,6 +71,21 @@
7071
],
7172
},
7273
],
74+
[
75+
'travis == ""',
76+
{
77+
'xcode_settings':
78+
{
79+
'OTHER_LD_FLAGS':
80+
[
81+
'-Wl,-platform_version',
82+
'-Wl,macos',
83+
'-Wl,10.9',
84+
'-Wl,10.9',
85+
],
86+
},
87+
},
88+
],
7389
[
7490
# Non-bundle loadable module should have a .dylib suffix
7591
# and be linked as libraries, not bundles

docs/notes/bugfix-23176.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure externals are not blocked by hardened runtime

0 commit comments

Comments
 (0)