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

Issue 2520373003: Use /OPT:REF in clang optimized static builds (Closed)

Created:
4 years, 1 month ago by Reid Kleckner
Modified:
4 years, 1 month ago
Reviewers:
penny, Nico
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use /OPT:REF in clang static release builds Chromium normally builds with /PROFILE in static release builds, which implies "/OPT:REF /OPT:ICF /INCREMENTAL:NO /FIXED:NO". We can't use /PROFILE with Clang, so instead pass the list of implied flags to make Clang builds more closely match MSVC builds. We already do this for is_win_fastlink=true builds, presumably for the same reason. It turns out that the chrome_elf_unittests relies on /OPT:REF because it allows the linker to remove unused user32.dll dependencies brought in by //base. These tests only run in release+static builds, and most clang release+static bots do official builds. Official builds already use /OPT:REF for unrelated reasons, so we only see these test failures on ASan bots, which don't do official builds. BUG=646414 R=thakis@chromium.org Committed: https://crrev.com/7bff5aca5d8144576a46b3dc0a37086c7e1a8d25 Cr-Commit-Position: refs/heads/master@{#433929}

Patch Set 1 #

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

Messages

Total messages: 15 (9 generated)
Reid Kleckner
4 years, 1 month ago (2016-11-22 17:24:46 UTC) #1
Nico
Change lgtm, but "and most Windows Clang ToT bots do official builds" is not true: ...
4 years, 1 month ago (2016-11-22 17:53:28 UTC) #4
Reid Kleckner
On 2016/11/22 17:53:28, Nico wrote: > Change lgtm, but "and most Windows Clang ToT bots ...
4 years, 1 month ago (2016-11-22 18:34:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2520373003/1
4 years, 1 month ago (2016-11-22 18:50:07 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-22 18:55:50 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 18:57:49 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7bff5aca5d8144576a46b3dc0a37086c7e1a8d25
Cr-Commit-Position: refs/heads/master@{#433929}

Powered by Google App Engine
This is Rietveld 408576698