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
1 changed files with 4 additions and 3 deletions

View File

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