visibility.patch (577B)
1 --- a/build/moz.configure/toolchain.configure 2 +++ b/build/moz.configure/toolchain.configure 3 @@ -2186,7 +2186,7 @@ 4 -@depends(target, build_environment) 5 +@depends(target, c_compiler, build_environment) 6 -def visibility_flags(target, env): 7 +def visibility_flags(target, c_compiler, env): 8 if target.os != "WINNT": 9 - if target.kernel == "Darwin": 10 + if target.kernel == "Darwin" or c_compiler.type == "clang": 11 return ("-fvisibility=hidden", "-fvisibility-inlines-hidden") 12 return ( 13 "-I%s/system_wrappers" % os.path.join(env.dist),