Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Issue 2897463004: libc++: change default symbol visibility to hidden (Closed)

Created:
3 years, 7 months ago by Tom Anderson
Modified:
3 years, 6 months ago
Reviewers:
Sam McNally, Nico, pcc1
Target Ref:
refs/heads/master
Project:
buildtools
Visibility:
Public.

Description

libc++: change default symbol visibility to hidden BUG=593874 R=sammc@chromium.org, thakis@chromium.org Committed: 57c94085e893cd46aa1c5ad4ee9d7ee4670312a6

Patch Set 1 #

Patch Set 2 : Update libc++abi as well #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -4 lines) Patch
M third_party/libc++/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/libc++abi/BUILD.gn View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Tom Anderson
thakis@ ptal +sammc as author of https://codereview.chromium.org/1145333004 subsequently, symbol_visibility_default was added in https://codereview.chromium.org/1930753004
3 years, 7 months ago (2017-05-19 20:37:00 UTC) #3
Nico
lgtm pcc, do you remember anything about this (context: https://bugs.chromium.org/p/chromium/issues/detail?id=607370)?
3 years, 7 months ago (2017-05-19 20:43:53 UTC) #4
pcc1
This looks like the right change if we just want to change the visibility flags ...
3 years, 7 months ago (2017-05-19 20:58:47 UTC) #5
Tom Anderson
On 2017/05/19 20:58:47, pcc1 wrote: > This looks like the right change if we just ...
3 years, 7 months ago (2017-05-19 21:12:52 UTC) #6
Tom Anderson
Committed patchset #2 (id:20001) manually as 57c94085e893cd46aa1c5ad4ee9d7ee4670312a6 (presubmit successful).
3 years, 7 months ago (2017-05-20 02:05:16 UTC) #8
pcc1
3 years, 6 months ago (2017-05-26 20:05:54 UTC) #9
Message was sent while issue was closed.
On 2017/05/19 21:12:52, Tom Anderson wrote:
> On 2017/05/19 20:58:47, pcc1 wrote:
> > This looks like the right change if we just want to change the visibility
> flags
> > passed to the compiler, but is this really all that is needed to change
symbol
> > visibility in the object files? I was under the impression that this
wouldn't
> be
> > enough because these libraries use macros to control visibility explicitly:
> > 
> > https://github.com/llvm-mirror/libcxx/blob/master/include/__config
> >
https://github.com/llvm-mirror/libcxxabi/blob/master/include/__cxxabi_config.h
> > 
> > So I think we would also need to arrange to define
> > _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS and
> > _LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS.
> 
> Makes sense to me.  Currently the libc++ target is a shared_library so we need
> the exported symbols, but eventually it will be made into a component so that
it
> will statically link on non-component builds.  When this change is made, we
can
> add those defines for non-component builds.  wdyt?

(looks like I was somehow dropped from the reviewer list)

Sounds good to me.

Powered by Google App Engine
This is Rietveld 408576698