ld warning building libblink_plaltform on OSX |
||||
Issue descriptionNew clang arrived this week: noticed this ld warning during linking component build of chrome at ToT. [24330/27524] SOLINK libblink_platform.dylib libblink_platform.dylib.TOC ld: warning: direct access in blink::CubicBezierTimingFunction::Preset(cc::CubicBezierTimingFunction::EaseType) to global weak symbol blink::CubicBezierTimingFunction::Preset(cc::CubicBezierTimingFunction::EaseType)::ease_in_out means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. ... warning repeats ~10 times.
,
May 17 2017
Nope, no whinge about ComputedStyle. I've just pulled chromium ToT again to do another full component build re-compile to see if this is still.
,
May 17 2017
And no mention of ComputedStyle. Log attached. gn args are: is_component_build = true is_debug = false enable_nacl = false is_clang = true
,
May 18 2017
,
May 18 2017
We should probably add a presubmit check to avoid using this macro in header files.
,
May 18 2017
Yeap, maybe file a bug about the presubmit for now.
,
May 18 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/1d5b2074f9265b918ef7571e13cfc2c2d794d940 commit 1d5b2074f9265b918ef7571e13cfc2c2d794d940 Author: alancutter <alancutter@chromium.org> Date: Thu May 18 13:10:30 2017 Remove DEFINE_STATIC_REF calls from header files This patch moves calls to DEFINE_STATIC_REF from header files to their corresponding source file. DEFINE_STATIC_REF initialises static local variables. They should not be used in header files otherwise separate build components may end up holding onto separate versions of the object. BUG= 723295 Review-Url: https://codereview.chromium.org/2885983004 Cr-Commit-Position: refs/heads/master@{#472784} [modify] https://crrev.com/1d5b2074f9265b918ef7571e13cfc2c2d794d940/third_party/WebKit/Source/core/style/ComputedStyle.cpp [modify] https://crrev.com/1d5b2074f9265b918ef7571e13cfc2c2d794d940/third_party/WebKit/Source/core/style/ComputedStyle.h [modify] https://crrev.com/1d5b2074f9265b918ef7571e13cfc2c2d794d940/third_party/WebKit/Source/platform/animation/TimingFunction.cpp [modify] https://crrev.com/1d5b2074f9265b918ef7571e13cfc2c2d794d940/third_party/WebKit/Source/platform/animation/TimingFunction.h
,
May 19 2017
,
May 22 2017
Did a full ToT component build on OSX today with gn args per #3, and no warnings about linking libblink_platform.dylib anymore. |
||||
►
Sign in to add a comment |
||||
Comment 1 by alancutter@chromium.org
, May 17 2017