Skip to content

Commit 1946b5f

Browse files
committed
scripts: more robustly test macOS symbol checks
1 parent a8127b3 commit 1946b5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/devtools/test-symbol-check.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_MACHO(self):
9999
100100
''')
101101

102-
self.assertEqual(call_symbol_check(cc, source, executable, ['-lexpat']),
102+
self.assertEqual(call_symbol_check(cc, source, executable, ['-lexpat', '-Wl,-platform_version','-Wl,macos', '-Wl,11.4', '-Wl,11.4']),
103103
(1, 'libexpat.1.dylib is not in ALLOWED_LIBRARIES!\n' +
104104
f'{executable}: failed DYNAMIC_LIBRARIES MIN_OS SDK'))
105105

@@ -116,7 +116,7 @@ def test_MACHO(self):
116116
}
117117
''')
118118

119-
self.assertEqual(call_symbol_check(cc, source, executable, ['-framework', 'CoreGraphics']),
119+
self.assertEqual(call_symbol_check(cc, source, executable, ['-framework', 'CoreGraphics', '-Wl,-platform_version','-Wl,macos', '-Wl,11.4', '-Wl,11.4']),
120120
(1, f'{executable}: failed MIN_OS SDK'))
121121

122122
source = 'test3.c'
@@ -129,7 +129,7 @@ def test_MACHO(self):
129129
}
130130
''')
131131

132-
self.assertEqual(call_symbol_check(cc, source, executable, ['-mmacosx-version-min=10.14']),
132+
self.assertEqual(call_symbol_check(cc, source, executable, ['-Wl,-platform_version','-Wl,macos', '-Wl,10.14', '-Wl,11.4']),
133133
(1, f'{executable}: failed SDK'))
134134

135135
def test_PE(self):

0 commit comments

Comments
 (0)