| Index: build/config/gcc/BUILD.gn
|
| diff --git a/build/config/gcc/BUILD.gn b/build/config/gcc/BUILD.gn
|
| index 6abf1a048c93195b244630740a1bb05eddf62190..433497e1350509e8fb0b715c70876adfb21ee980 100644
|
| --- a/build/config/gcc/BUILD.gn
|
| +++ b/build/config/gcc/BUILD.gn
|
| @@ -32,6 +32,16 @@ config("symbol_visibility_hidden") {
|
| # Note that -fvisibility-inlines-hidden is set globally in the compiler
|
| # config since that can almost always be applied.
|
| cflags = [ "-fvisibility=hidden" ]
|
| +
|
| + # Visibility attribute is not supported on AIX.
|
| + if (current_os != "aix") {
|
| + cflags_cc = [
|
| + # Not exporting C++ inline functions can generally be applied anywhere
|
| + # so we do so here. Normal function visibility is controlled by
|
| + # //build/config/gcc:symbol_visibility_hidden.
|
| + "-fvisibility-inlines-hidden",
|
| + ]
|
| + }
|
| }
|
|
|
| # This config is usually set when :symbol_visibility_hidden is removed.
|
|
|