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

Issue 1979973002: Correctly set -stdlib=libc++ when building with a custom libc++. (Closed)

Created:
4 years, 7 months ago by Sam McNally
Modified:
4 years, 7 months ago
Reviewers:
Dirk Pranke, Nico
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Correctly set -stdlib=libc++ when building with a custom libc++. The libcxx_proxy target used to set the link-time configuration to correctly link libc++ sets it as a public_config. However, the sanitizer deps targets have only private dependencies on libcxx_proxy so the config does not apply to their dependents. This changes those dependencies to be public. This disables sanitizers for all non-default gcc_toolchain toolchains; the android host toolchain build does not support building with libc++ and the GYP build does not use sanitizers for building host targets. BUG=573288 Committed: https://crrev.com/34099cc1fb570af8990d5fad1b1e11fe4290680b Cr-Commit-Position: refs/heads/master@{#394910}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -17 lines) Patch
M build/config/sanitizers/BUILD.gn View 3 chunks +7 lines, -3 lines 0 comments Download
M build/config/sanitizers/sanitizers.gni View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M build/toolchain/gcc_toolchain.gni View 1 2 1 chunk +9 lines, -10 lines 0 comments Download
M build/toolchain/nacl_toolchain.gni View 1 2 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
Sam McNally
4 years, 7 months ago (2016-05-16 08:20:43 UTC) #4
Dirk Pranke
lgtm, I think. +thakis ...
4 years, 7 months ago (2016-05-16 17:36:06 UTC) #5
Nico
Makes sense, thanks!
4 years, 7 months ago (2016-05-16 17:38:33 UTC) #7
Sam McNally
That one red trybot found quite a few issues with using asan with gn on ...
4 years, 7 months ago (2016-05-17 08:01:49 UTC) #8
Nico
Do you know how this worked in gyp? Can we do here what we did ...
4 years, 7 months ago (2016-05-19 00:34:34 UTC) #9
Sam McNally
On 2016/05/19 00:34:34, Nico (vacation May 19 to 22) wrote: > Do you know how ...
4 years, 7 months ago (2016-05-19 04:27:19 UTC) #10
Dirk Pranke
lgtm. https://codereview.chromium.org/1979973002/diff/40001/build/config/sanitizers/sanitizers.gni File build/config/sanitizers/sanitizers.gni (right): https://codereview.chromium.org/1979973002/diff/40001/build/config/sanitizers/sanitizers.gni#newcode84 build/config/sanitizers/sanitizers.gni:84: (is_asan && is_linux && !is_android && !is_chromeos) || ...
4 years, 7 months ago (2016-05-19 05:17:26 UTC) #11
Sam McNally
https://codereview.chromium.org/1979973002/diff/40001/build/config/sanitizers/sanitizers.gni File build/config/sanitizers/sanitizers.gni (right): https://codereview.chromium.org/1979973002/diff/40001/build/config/sanitizers/sanitizers.gni#newcode84 build/config/sanitizers/sanitizers.gni:84: (is_asan && is_linux && !is_android && !is_chromeos) || is_tsan ...
4 years, 7 months ago (2016-05-19 07:38:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1979973002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1979973002/60001
4 years, 7 months ago (2016-05-19 23:47:10 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-19 23:53:22 UTC) #18
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 23:54:39 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/34099cc1fb570af8990d5fad1b1e11fe4290680b
Cr-Commit-Position: refs/heads/master@{#394910}

Powered by Google App Engine
This is Rietveld 408576698