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

Issue 1413863003: mac: In static library builds, link against a static libc++.a (Closed)

Created:
5 years, 2 months ago by Nico
Modified:
5 years, 2 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, eugenis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mac: In static library builds, link against a static libc++.a To achieve this, just add a -Lthird_party/libc++-static flag to the link line, and add a postbuild that checks that Chromium Framework depends on neither libstdc++.dylib nor libc++.dylib Use the existing verify_order postbuild for this, and let it not run in component builds (since what it checks for isn't interesting in that config, and we do depend on system libc++ in component builds). Also don't do this in asan builds. asan already requires OS X 10.7+. And don't do this for targets below native_client, since those still use the 10.6 SDK (!). This change is small but subtle, see thread "[chromium-dev] Intent to implement: Statically linking libc++ for Chrome/Mac" and the document linked from comment 14 on the bug for details. Ideally, this has no observable behavior change. If it looks like this breaks tests somewhere, especially on 10.6, please revert. (The bots like it, and the things I tried on 10.6 worked too, though.) BUG=400091, 544325 R=mark@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/494270d01189f8b4b2b4ebd501fd980833489729 Committed: https://chromium.googlesource.com/chromium/src/+/0f56cff872068cef226e7ad3f9701eb41d4eb2f5 Committed: https://crrev.com/f8a27cca3c79ca9c8f6bf701aa2cb8bbbc8b3059 Cr-Commit-Position: refs/heads/master@{#355966}

Patch Set 1 #

Total comments: 14

Patch Set 2 : comments #

Patch Set 3 : missed a comment #

Patch Set 4 : asan #

Patch Set 5 : asan vs gyp scoping #

Patch Set 6 : asan vs verify_order #

Patch Set 7 : naaaaaacl #

Patch Set 8 : hack #

Patch Set 9 : haaaaack #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -18 lines) Patch
M .gitignore View 1 1 chunk +1 line, -1 line 0 comments Download
M DEPS View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 2 chunks +52 lines, -11 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/tools/build/mac/verify_order View 1 2 chunks +16 lines, -0 lines 0 comments Download
M third_party/libc++-static/build.sh View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
D third_party/libc++-static/libc++-static.a.sha1 View 1 chunk +0 lines, -1 line 0 comments Download
A + third_party/libc++-static/libc++.a.sha1 View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 38 (17 generated)
Nico
mark: This is how this would look like. eugenis: Sicne you're doing some libc++ stuff ...
5 years, 2 months ago (2015-10-23 13:05:33 UTC) #2
Mark Mentovai
https://codereview.chromium.org/1413863003/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1413863003/diff/1/build/common.gypi#newcode5264 build/common.gypi:5264: # binary that doesn't run on 10.6) Is this ...
5 years, 2 months ago (2015-10-23 13:56:36 UTC) #3
Nico
Thanks, good comments. https://codereview.chromium.org/1413863003/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1413863003/diff/1/build/common.gypi#newcode5264 build/common.gypi:5264: # binary that doesn't run on ...
5 years, 2 months ago (2015-10-23 15:39:29 UTC) #4
Mark Mentovai
LGTM https://codereview.chromium.org/1413863003/diff/1/third_party/libc++-static/build.sh File third_party/libc++-static/build.sh (right): https://codereview.chromium.org/1413863003/diff/1/third_party/libc++-static/build.sh#newcode41 third_party/libc++-static/build.sh:41: # size in each binary linking against libc++-static.a ...
5 years, 2 months ago (2015-10-23 16:46:08 UTC) #6
Nico
https://codereview.chromium.org/1413863003/diff/1/third_party/libc++-static/build.sh File third_party/libc++-static/build.sh (right): https://codereview.chromium.org/1413863003/diff/1/third_party/libc++-static/build.sh#newcode41 third_party/libc++-static/build.sh:41: # size in each binary linking against libc++-static.a On ...
5 years, 2 months ago (2015-10-23 17:54:42 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413863003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413863003/40001
5 years, 2 months ago (2015-10-23 17:56:37 UTC) #11
Mark Mentovai
LGTM
5 years, 2 months ago (2015-10-23 17:56:44 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/494270d01189f8b4b2b4ebd501fd980833489729 Cr-Commit-Position: refs/heads/master@{#355826}
5 years, 2 months ago (2015-10-23 18:04:53 UTC) #13
Nico
Committed patchset #3 (id:40001) manually as 494270d01189f8b4b2b4ebd501fd980833489729 (presubmit successful).
5 years, 2 months ago (2015-10-23 18:06:04 UTC) #14
Nico
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1424573002/ by thakis@chromium.org. ...
5 years, 2 months ago (2015-10-23 18:24:29 UTC) #15
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/0f56cff872068cef226e7ad3f9701eb41d4eb2f5 Cr-Commit-Position: refs/heads/master@{#355848}
5 years, 2 months ago (2015-10-23 18:52:58 UTC) #17
Nico
Committed patchset #4 (id:60001) manually as 0f56cff872068cef226e7ad3f9701eb41d4eb2f5 (presubmit successful).
5 years, 2 months ago (2015-10-23 18:53:29 UTC) #18
Evan Stade
On 2015/10/23 18:53:29, Nico (vacation Fri Oct 23) wrote: > Committed patchset #4 (id:60001) manually ...
5 years, 2 months ago (2015-10-23 19:19:03 UTC) #19
DaleCurtis
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1424593003/ by dalecurtis@chromium.org. ...
5 years, 2 months ago (2015-10-23 19:19:06 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413863003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413863003/120001
5 years, 2 months ago (2015-10-24 00:37:16 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413863003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413863003/140001
5 years, 2 months ago (2015-10-24 00:55:41 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413863003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413863003/160001
5 years, 2 months ago (2015-10-24 01:00:59 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/130901)
5 years, 2 months ago (2015-10-24 03:26:27 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413863003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413863003/160001
5 years, 2 months ago (2015-10-24 05:10:38 UTC) #36
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 2 months ago (2015-10-24 07:17:05 UTC) #37
commit-bot: I haz the power
5 years, 2 months ago (2015-10-24 07:17:52 UTC) #38
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/f8a27cca3c79ca9c8f6bf701aa2cb8bbbc8b3059
Cr-Commit-Position: refs/heads/master@{#355966}

Powered by Google App Engine
This is Rietveld 408576698