Commit d934dbd1 authored by Jochen Eisinger's avatar Jochen Eisinger Committed by Commit Bot

Apply visibility flags to ObjC++ as well

Bug: 721066, 731751
Change-Id: Ie59104f9d856a9226e53af34b125cdf2d266953e
Reviewed-on: https://chromium-review.googlesource.com/541403Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#480859}
parent 74b40e5f
...@@ -29,18 +29,12 @@ declare_args() { ...@@ -29,18 +29,12 @@ declare_args() {
# #
# See http://gcc.gnu.org/wiki/Visibility # See http://gcc.gnu.org/wiki/Visibility
config("symbol_visibility_hidden") { 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" ] cflags = [ "-fvisibility=hidden" ]
# Visibility attribute is not supported on AIX. # Visibility attribute is not supported on AIX.
if (current_os != "aix") { if (current_os != "aix") {
cflags_cc = [ cflags_cc = [ "-fvisibility-inlines-hidden" ]
# Not exporting C++ inline functions can generally be applied anywhere cflags_objcc = cflags_cc
# so we do so here. Normal function visibility is controlled by
# //build/config/gcc:symbol_visibility_hidden.
"-fvisibility-inlines-hidden",
]
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment