libcxx18.patch (912B)
1 Patch-Source: https://dev.gentoo.org/~juippis/mozilla/patchsets/firefox-124-patches-04.tar.xz 2 3 --- a/build/moz.configure/toolchain.configure 4 +++ b/build/moz.configure/toolchain.configure 5 @@ -2454,10 +2454,10 @@ set_define("_LIBCPP_ALWAYS_INLINE", libcxx_override_visibility.empty) 6 set_define("_LIBCPP_HIDE_FROM_ABI", libcxx_override_visibility.hide_from_abi) 7 8 9 -@depends(target, build_environment) 10 -def visibility_flags(target, env): 11 +@depends(target, build_environment, c_compiler) 12 +def visibility_flags(target, env, c_compiler): 13 if target.os != "WINNT": 14 - if target.kernel in ("Darwin", "FreeBSD", "OpenBSD"): 15 + if target.kernel in ("Darwin", "FreeBSD", "OpenBSD") or (c_compiler.type == "clang" and c_compiler.version >= "17.0.0"): 16 return ("-fvisibility=hidden", "-fvisibility-inlines-hidden") 17 return ( 18 "-I%s/system_wrappers" % os.path.join(env.dist),