From f26257d6e4f118b47bf1cd165917cfe023d3d896 Mon Sep 17 00:00:00 2001 From: a1batross Date: Thu, 31 Mar 2022 21:19:09 +0300 Subject: [PATCH] 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. --- wscript | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index 6488749633..6a74d29005 100644 --- a/wscript +++ b/wscript @@ -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')