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

Issue 1903583002: GN Build fixes for Flutter + gen_snapshot fix (Closed)

Created:
4 years, 8 months ago by Cutch
Modified:
4 years, 8 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

GN Build fixes for Flutter + gen_snapshot fix 1. Add "dart_runtime_mode" GN argument. This is an enum with three valid values: "release", "profile", and "develop". *) "release" builds product precompiled-runtime. *) "profile" builds non-product precompiled-runtime. *) "develop" builds non-product non-precompiled-runtime. 2. Remove the redundant "dart_product" GN argument. 3. Kill all *precompiled_runtime static library variants and the related config. 4. Always include the precompiler in gen_snapshot. 5. Support multiple --embedder_entry_points_manifest arguments to gen_snapshot. 6. Update our test harness to use gen_snapshot and pass the same kinds of command line arguments the Flutter folks are using. 7. ASSERT that both DART_PRECOMPILED_RUNTIME and DART_PRECOMPILER are not set at the same time. R=fschneider@google.com, rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/0cfd4f5cd5a2471a59985e0ccb42712d41e9e892

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 4

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -171 lines) Patch
M runtime/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 6 chunks +52 lines, -102 lines 0 comments Download
M runtime/bin/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 7 chunks +51 lines, -7 lines 0 comments Download
A runtime/bin/dart_entries.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A runtime/bin/dart_product_entries.txt View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 2 3 4 5 6 7 18 chunks +167 lines, -39 lines 0 comments Download
M runtime/platform/globals.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -3 lines 0 comments Download
M runtime/vm/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 5 chunks +27 lines, -16 lines 0 comments Download
M tools/testing/dart/compiler_configuration.dart View 1 2 3 4 5 5 chunks +25 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
Cutch
4 years, 8 months ago (2016-04-19 21:14:13 UTC) #3
Florian Schneider
How about a fourth product-non-precompiled variant?
4 years, 8 months ago (2016-04-19 21:38:15 UTC) #4
Cutch
On 2016/04/19 21:38:15, Florian Schneider wrote: > How about a fourth product-non-precompiled variant? The variants ...
4 years, 8 months ago (2016-04-19 21:44:20 UTC) #5
Florian Schneider
Lgtm. Do we have test coverage of the 'release' build on our buildbot? https://codereview.chromium.org/1903583002/diff/1/runtime/BUILD.gn File ...
4 years, 8 months ago (2016-04-19 22:05:24 UTC) #6
rmacnak
On 2016/04/19 22:05:24, Florian Schneider wrote: > Lgtm. > > Do we have test coverage ...
4 years, 8 months ago (2016-04-19 23:32:25 UTC) #7
Florian Schneider
On 2016/04/19 23:32:25, rmacnak wrote: > On 2016/04/19 22:05:24, Florian Schneider wrote: > > Lgtm. ...
4 years, 8 months ago (2016-04-20 11:04:37 UTC) #8
Cutch
On 2016/04/19 23:32:25, rmacnak wrote: > When I patched this in, gen_snapshot hit the stubbed ...
4 years, 8 months ago (2016-04-20 14:55:13 UTC) #9
Cutch
On 2016/04/20 11:04:37, Florian Schneider wrote: > On 2016/04/19 23:32:25, rmacnak wrote: > > On ...
4 years, 8 months ago (2016-04-20 14:57:13 UTC) #10
Cutch
PTAL. Only thing left on my TODO for this CL is to switch the VM ...
4 years, 8 months ago (2016-04-20 15:57:26 UTC) #12
rmacnak
On 2016/04/20 14:55:13, Cutch wrote: > On 2016/04/19 23:32:25, rmacnak wrote: > > When I ...
4 years, 8 months ago (2016-04-20 16:48:17 UTC) #13
Cutch
PTAL
4 years, 8 months ago (2016-04-20 21:19:01 UTC) #16
rmacnak
I'm seeing a bunch of bogus MissingCompileTimeError running tools/test.py -mrelease -cprecompiler -rdart_precompiled language presumably gen_snapshot ...
4 years, 8 months ago (2016-04-20 22:56:05 UTC) #18
Cutch
Compilation errors not being reported by tests has been addressed. https://codereview.chromium.org/1903583002/diff/80001/tools/testing/dart/compiler_configuration.dart File tools/testing/dart/compiler_configuration.dart (right): https://codereview.chromium.org/1903583002/diff/80001/tools/testing/dart/compiler_configuration.dart#newcode348 ...
4 years, 8 months ago (2016-04-21 15:00:57 UTC) #19
rmacnak
lgtm
4 years, 8 months ago (2016-04-21 16:53:48 UTC) #20
Cutch
As discussed offline: - DART_PRECOMPILED_RUNTIME and DART_PRECOMPILER are not set simultaneously. - DART_PRECOMPILER is always ...
4 years, 8 months ago (2016-04-22 01:09:41 UTC) #24
rmacnak
lgtm w/nits https://codereview.chromium.org/1903583002/diff/180001/runtime/BUILD.gn File runtime/BUILD.gn (right): https://codereview.chromium.org/1903583002/diff/180001/runtime/BUILD.gn#newcode151 runtime/BUILD.gn:151: configs += [":dart_config", ":dart_product_config", ":dart_precompiled_runtime_config"] (throughout) long ...
4 years, 8 months ago (2016-04-22 02:48:54 UTC) #25
Cutch
Committed patchset #11 (id:200001) manually as 0cfd4f5cd5a2471a59985e0ccb42712d41e9e892 (presubmit successful).
4 years, 8 months ago (2016-04-22 14:00:12 UTC) #27
Cutch
4 years, 8 months ago (2016-04-22 14:05:15 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/1903583002/diff/180001/runtime/BUILD.gn
File runtime/BUILD.gn (right):

https://codereview.chromium.org/1903583002/diff/180001/runtime/BUILD.gn#newco...
runtime/BUILD.gn:151: configs += [":dart_config", ":dart_product_config",
":dart_precompiled_runtime_config"]
On 2016/04/22 02:48:54, rmacnak wrote:
> (throughout) long line, split like deps

Done here and elsewhere.

https://codereview.chromium.org/1903583002/diff/180001/runtime/platform/globa...
File runtime/platform/globals.h (right):

https://codereview.chromium.org/1903583002/diff/180001/runtime/platform/globa...
runtime/platform/globals.h:140: #error DART_PRECOMPILED_RUNTIME and
DART_PRECOMPILER are mutally exclusive
On 2016/04/22 02:48:54, rmacnak wrote:
> mutually

Done.

Powered by Google App Engine
This is Rietveld 408576698