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

Issue 2645323002: Add support for configurable -OX optimization levels for debug builds (Closed)

Created:
3 years, 11 months ago by kustermann
Modified:
3 years, 11 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Kevin Millikin (Google)
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add support for configurable -OX optimization levels for debug builds Can be used via -dX or --debug-opt-level=X, e.g. tools/gn.py --mode=debug --arch=x64 -d0 R=vegorov@google.com, zra@google.com Committed: https://github.com/dart-lang/sdk/commit/4e34234c28275a67a56e585a6e926e663dcc10cb

Patch Set 1 #

Total comments: 5

Patch Set 2 : Make the --debug-opt-level be a string (e.g. for "s"), add debug_optimization_level #

Total comments: 4

Patch Set 3 : Move --debug-opt-level after --no-clang in tools/gn.py #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -4 lines) Patch
M build/config/compiler/BUILD.gn View 1 2 chunks +14 lines, -3 lines 0 comments Download
M runtime/BUILD.gn View 1 2 chunks +4 lines, -1 line 0 comments Download
M tools/gn.py View 1 2 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
kustermann
3 years, 11 months ago (2017-01-23 11:09:21 UTC) #3
kustermann
3 years, 11 months ago (2017-01-23 11:09:31 UTC) #4
Kevin Millikin (Google)
https://codereview.chromium.org/2645323002/diff/1/runtime/BUILD.gn File runtime/BUILD.gn (right): https://codereview.chromium.org/2645323002/diff/1/runtime/BUILD.gn#newcode169 runtime/BUILD.gn:169: cflags += [ "-O${dart_debug_optimization_level}" ] This flag seems to ...
3 years, 11 months ago (2017-01-23 13:32:22 UTC) #6
kustermann
https://codereview.chromium.org/2645323002/diff/1/runtime/BUILD.gn File runtime/BUILD.gn (right): https://codereview.chromium.org/2645323002/diff/1/runtime/BUILD.gn#newcode169 runtime/BUILD.gn:169: cflags += [ "-O${dart_debug_optimization_level}" ] On 2017/01/23 13:32:22, Kevin ...
3 years, 11 months ago (2017-01-23 13:59:11 UTC) #7
kustermann
https://codereview.chromium.org/2645323002/diff/1/runtime/BUILD.gn File runtime/BUILD.gn (right): https://codereview.chromium.org/2645323002/diff/1/runtime/BUILD.gn#newcode169 runtime/BUILD.gn:169: cflags += [ "-O${dart_debug_optimization_level}" ] On 2017/01/23 13:59:11, kustermann ...
3 years, 11 months ago (2017-01-23 14:11:54 UTC) #8
Vyacheslav Egorov (Google)
lgtm
3 years, 11 months ago (2017-01-23 14:42:48 UTC) #9
zra
https://codereview.chromium.org/2645323002/diff/1/runtime/BUILD.gn File runtime/BUILD.gn (right): https://codereview.chromium.org/2645323002/diff/1/runtime/BUILD.gn#newcode169 runtime/BUILD.gn:169: cflags += [ "-O${dart_debug_optimization_level}" ] On 2017/01/23 14:11:54, kustermann ...
3 years, 11 months ago (2017-01-23 16:39:54 UTC) #10
zra
On 2017/01/23 16:39:54, zra wrote: > https://codereview.chromium.org/2645323002/diff/1/runtime/BUILD.gn > File runtime/BUILD.gn (right): > > https://codereview.chromium.org/2645323002/diff/1/runtime/BUILD.gn#newcode169 > ...
3 years, 11 months ago (2017-01-23 16:41:15 UTC) #11
kustermann
PTAL https://codereview.chromium.org/2645323002/diff/1/runtime/BUILD.gn File runtime/BUILD.gn (right): https://codereview.chromium.org/2645323002/diff/1/runtime/BUILD.gn#newcode169 runtime/BUILD.gn:169: cflags += [ "-O${dart_debug_optimization_level}" ] Done. > This ...
3 years, 11 months ago (2017-01-24 11:44:52 UTC) #12
zra
lgtm w/ nit https://codereview.chromium.org/2645323002/diff/20001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2645323002/diff/20001/build/config/compiler/BUILD.gn#newcode762 build/config/compiler/BUILD.gn:762: # much even when optimization is ...
3 years, 11 months ago (2017-01-24 16:00:37 UTC) #13
kustermann
Thanks. https://codereview.chromium.org/2645323002/diff/20001/tools/gn.py File tools/gn.py (right): https://codereview.chromium.org/2645323002/diff/20001/tools/gn.py#newcode316 tools/gn.py:316: other_group.add_argument('--debug-opt-level', On 2017/01/24 16:00:36, zra wrote: > Let's ...
3 years, 11 months ago (2017-01-24 16:36:18 UTC) #14
kustermann
3 years, 11 months ago (2017-01-24 16:36:46 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
4e34234c28275a67a56e585a6e926e663dcc10cb (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698