@@ -99,7 +99,7 @@ def test_MACHO(self):
99
99
100
100
''' )
101
101
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' ]),
103
103
(1 , 'libexpat.1.dylib is not in ALLOWED_LIBRARIES!\n ' +
104
104
f'{ executable } : failed DYNAMIC_LIBRARIES MIN_OS SDK' ))
105
105
@@ -116,7 +116,7 @@ def test_MACHO(self):
116
116
}
117
117
''' )
118
118
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' ]),
120
120
(1 , f'{ executable } : failed MIN_OS SDK' ))
121
121
122
122
source = 'test3.c'
@@ -129,7 +129,7 @@ def test_MACHO(self):
129
129
}
130
130
''' )
131
131
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 ' ]),
133
133
(1 , f'{ executable } : failed SDK' ))
134
134
135
135
def test_PE (self ):
0 commit comments