13
0

wscript: fix Apple-specific flag being added on non-Apple platforms

Although GCC and Clang completely ignore this flag on non-Apple platforms, some "GCC-compatible" compilers may not, like EDG frontend based compilers.
This commit is contained in:
a1batross 2022-03-31 21:19:09 +03:00 committed by Robin Gareus
parent 77fe1c6d32
commit f26257d6e4
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1387,6 +1387,7 @@ int main () { return 0; }
set_compiler_flags (conf, Options.options)
if sys.platform == 'darwin':
if conf.env['build_host'] not in [ 'mojave', 'catalina', 'bigsur']:
conf.env.append_value('CXXFLAGS_OSX', '-F/System/Library/Frameworks')