Zach Anderson
a9ab8f4e7d
[GN] Hack around Dart 2 application_snapshot deps issue
...
For Dart 2 snapshots, application_snapshots() hardcodes a deps on
//utils/kernel-service:copy_kernel_service_snapshot
related #33167
Change-Id: I9a598e83a3e8ebb9a27bfe83132f3a957f2fea0e
Reviewed-on: https://dart-review.googlesource.com/56161
Reviewed-by: Nate Bosch <nbosch@google.com >
Commit-Queue: Zach Anderson <zra@google.com >
2018-05-22 17:47:16 +00:00
Devon Carew
eeec6466b6
Convert the command-line analyzer to a dart 2 snapshot.
...
Change-Id: Ieb5cd8971494a8a6ffc07c0fd4dde07cfb6f5373
Reviewed-on: https://dart-review.googlesource.com/56034
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2018-05-22 15:44:04 +00:00
Zach Anderson
4877587346
[GN] Uses dart_action.gni instead of compiled_action.gni.
...
This avoids conflicts with client repos that have a file
//build/compiled_action.gni with something different in them.
Change-Id: I133f66b0989bcb547cb8eed8710a88e2c1384bd7
Reviewed-on: https://dart-review.googlesource.com/53440
Commit-Queue: Zach Anderson <zra@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2018-05-03 21:07:13 +00:00
Ryan Macnak
61c226b4ea
Only create Goma's analyzer on Linux.
...
Bug: https://github.com/dart-lang/sdk/issues/33011
Change-Id: I9bc294fb4cda2b2c8b2d552feb18c7ce6af28695
Reviewed-on: https://dart-review.googlesource.com/53341
Reviewed-by: Zach Anderson <zra@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2018-05-02 16:27:15 +00:00
Ryan Macnak
61b15fede8
[build] Remove unnecessary inputs from uses of application_snapshot.
...
These dependencies are tracked via a depfile generated along with the snapshot.
Change-Id: I4245a982212a5aff28aea8456d0219808df54af0
Reviewed-on: https://dart-review.googlesource.com/51245
Reviewed-by: Zach Anderson <zra@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2018-04-16 21:13:09 +00:00
Ryan Macnak
1db1ac4863
Produce a single-file analyzer for Goma.
...
Change-Id: I5cfdd9b6d5b01157abc1468f905313adfd1063e6
Reviewed-on: https://dart-review.googlesource.com/50360
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2018-04-11 18:31:36 +00:00
Zachary Anderson
e842c9b0b5
[infra] Use dart_action() instead of python scripts
...
This change shifts logic for invoking Dart scripts during the build
from a couple of python scripts to a new template called dart_action().
Change-Id: Ic0818122cd7317cbd22a7255d880fe8f87271b7e
Reviewed-on: https://dart-review.googlesource.com/39260
Commit-Queue: Zach Anderson <zra@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2018-02-06 21:51:13 +00:00
Zachary Anderson
8c21a6dd6b
[GN] Use the prebuilt toolchain to build analyzer summaries
...
This will speed up cross-builds.
TO-660
Change-Id: Idb1bf8839ffc3443ff620fbe94b733fe71d6bf84
Reviewed-on: https://dart-review.googlesource.com/30901
Reviewed-by: Siva Annamalai <asiva@google.com >
2017-12-20 22:03:39 +00:00
Zach Anderson
0394d3a0cf
[infra] Begin removing gyp
...
This CL begins removing gyp from Dart's tree.
Removing gyp will go in three stages:
1. Remove unused .gyp and .gypi files.
2. Translate *_sources.gypi files to *_sources.gni files
3. Remove //third_party/gyp from DEPS
This CL is stage 1.
R=asiva@google.com
Review-Url: https://codereview.chromium.org/2992593002 .
2017-08-04 22:19:35 -07:00
Ryan Macnak
1eee6d8af3
Mostly revert "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host binaries."
...
This reverts commit 9ab39ae099 .
Keep removal of bad assert in loader.dart. Keep using script snapshot in cross builds.
We expect to use a checked-in SDK in the Fuschia build instead.
R=zra@google.com
Review-Url: https://codereview.chromium.org/2951133002 .
2017-06-21 15:19:21 -07:00
Ryan Macnak
9ab39ae099
Reapply "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host binaries."
...
Add missing config to run_vm_tests.
R=zra@google.com
Review-Url: https://codereview.chromium.org/2937503003 .
2017-06-13 08:49:00 -07:00
Ryan Macnak
3383c4ac25
Revert "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host binaries."
...
This reverts commit 54e80a8c32 .
Review-Url: https://codereview.chromium.org/2940513002 .
2017-06-12 15:19:23 -07:00
Ryan Macnak
54e80a8c32
[fuchsia] Prepare for setting the Dart target architecture appropriately in the host binaries.
...
Build another varient of dart_bootstrap targeting the host architecture to ensure reasonable Observatory build times.
Remove assert assuming a root script, which does not exist when gen_snapshot builds core snapshots.
R=zra@google.com
Review-Url: https://codereview.chromium.org/2924173005 .
2017-06-12 14:33:10 -07:00
Zachary Anderson
7f55ad8b86
Fuchsia: Allows building the full SDK for host and target.
...
R=rmacnak@google.com
Review-Url: https://codereview.chromium.org/2571713004 .
2016-12-13 13:02:52 -08:00
Zachary Anderson
ccfafee023
Make list_files.py and list_dart_files.py return absolute paths for GN
...
This makes doing an SDK build in the Fuchsia tree easier.
The previous attempt at this change failed in gyp builds targeting xcode.
They failed because input lists for actions of the same target (e.g. the
actions for dartanalyzer) are merged and de-duped when the lists contain
relative paths, but merged and *not* de-duped when the lists contain
absolute paths. gyp rejects xcode files that it generated itself
when they contain duplicate entries.
This CL works around that bug, by using absolute paths in the GN build
and keeping relative paths in the gyp build.
R=rmacnak@google.com
Review-Url: https://codereview.chromium.org/2567213002 .
2016-12-13 10:01:28 -08:00
Zachary Anderson
90d3962ca3
Don't depend on dart_bootstrap if there is a usable prebuilt sdk
...
Also replace invoke_dart() with compiled_action(), and some other
cleanups.
fixes #27781
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org/2493833002 .
2016-11-10 11:16:24 -08:00
Zachary Anderson
c1313a5ec7
Format GN files and add a presubmit check that GN is properly formatted
...
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org/2451613005 .
2016-10-26 08:50:54 -07:00
Ryan Macnak
af7bf4dab0
GN: Build the SDK with app snapshots instead of script snapshots.
...
R=zra@google.com
Review URL: https://codereview.chromium.org/2442513003 .
2016-10-21 17:40:21 -07:00
Zachary Anderson
ee21a2261d
Use list_dart_files.py instead of list_files.py in GN build.
...
To track https://codereview.chromium.org/2391863002/ on the
gyp side, and use it in more places.
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org/2392253002 .
2016-10-05 07:50:40 -07:00
Zachary Anderson
7c784cea9f
Linux create_sdk GN build for host
...
This CL enables GN builds of all targets from dart.gyp
on Linux for the host (i.e. ia32, x64).
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org/2379803002 .
2016-09-29 13:23:00 -07:00
William Hesse
79b682b885
Add explicit package spec to snapshot build steps
...
BUG=
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org/2372573002 .
2016-09-26 15:52:31 +02:00
William Hesse
0695b1db3a
Remove package root target and support scripts
...
BUG=https://github.com/dart-lang/sdk/issues/23565
R=kustermann@google.com
Review URL: https://codereview.chromium.org/2346163005 .
2016-09-20 13:32:50 +02:00
Konstantin Shcheglov
f4fdf25cb1
Fix dartanalyzer.gyp for SDK summary generation.
...
R=paulberry@google.com , whesse@google.com
BUG=
Review URL: https://codereview.chromium.org/2341303004 .
2016-09-16 09:13:01 -07:00
William Hesse
61eee9ee52
Use checked-in .package file for building and testing
...
Stop creating [build dir]/packages directory with symbolic links.
BUG=https://github.com/dart-lang/sdk/issues/23565
R=rnystrom@google.com
Committed: https://github.com/dart-lang/sdk/commit/5d3e356ca75be8aeff3efde5df946d746b9f8352
Review URL: https://codereview.chromium.org/1746743002 .
Reverted: https://github.com/dart-lang/sdk/commit/6d238ba197c8bda71afe790f16f6e9adaf7abd13
2016-09-16 15:03:18 +02:00
Konstantin Shcheglov
fa24d1caaa
Stop generating index information for SDK and simplify summary generation.
...
The implementation is still element model based, I will switch it to
the AST based approach in a following CL.
R=paulberry@google.com
BUG=
Review URL: https://codereview.chromium.org/2345793002 .
2016-09-15 16:15:20 -07:00
William Hesse
6d238ba197
Revert "Use checked-in .package file for building and testing"
...
This reverts commit 5d3e356ca7 .
BUG=
R=eernst@google.com
Review URL: https://codereview.chromium.org/2340813004 .
2016-09-15 15:46:49 +02:00
William Hesse
5d3e356ca7
Use checked-in .package file for building and testing
...
Stop creating [build dir]/packages directory with symbolic links.
BUG=https://github.com/dart-lang/sdk/issues/23565
R=rnystrom@google.com
Review URL: https://codereview.chromium.org/1746743002 .
2016-09-15 14:50:30 +02:00
Konstantin Shcheglov
5a927c7373
Add hacks into build_sdk_summaries to workaround bugs in build tools.
...
Paul thinks that there is a bug in gyp or make, and we should generate
only one output. So, we generate the whole bundle with all summaries
and index information. And then we have separate actions that take
this bundle and extract one output each - spec.sum and strong.sum files.
R=paulberry@google.com , whesse@google.com
BUG=
Review URL: https://codereview.chromium.org/1775973003 .
2016-03-09 11:37:17 -08:00
Paul Berry
1fa1b388c1
Fix incremental build of analyzer snapshot when pkg/analyzer changes.
...
Previously, changing a file in pkg/analyzer would not force a rebuild of
the analyzer snapshot, causing confusion during anayzer development.
R=scheglov@google.com
Review URL: https://codereview.chromium.org/1781473002 .
2016-03-08 14:04:21 -08:00
Konstantin Shcheglov
93393bba3b
Make 'generate_summaries' depend on the whole skd/lib folder.
...
R=whesse@google.com
BUG=
Review URL: https://codereview.chromium.org/1749813003 .
2016-03-01 11:17:06 -08:00
Konstantin Shcheglov
850e8d7309
Use --package-root when call build_sdk_summaries.dart script.
...
TBR
R=brianwilkerson@google.com ,whesse@google.com
BUG=
Review URL: https://codereview.chromium.org/1714973003 .
2016-02-19 19:51:38 -08:00
Konstantin Shcheglov
427f760c91
Build lib/_internal/analysis_summary during SDK build.
...
We cannot commit this CL right now, because we will attempt to use
these summaries by default, and they are incomplete yet. But I wanted
to see how to add something to the build process, and we might do
changes to make using SDK summaries optional initiallyand then commit
this CL.
R=paulberry@google.com , whesse@google.com
BUG=
Review URL: https://codereview.chromium.org/1588093005 .
2016-02-19 19:06:22 -08:00
pq
9ae1265ff5
analyzer_cli move to SDK.
...
Tracking bug: https://github.com/dart-lang/sdk/issues/24731
Note, dartium build changes are in a separate CL: https://codereview.chromium.org/1453413006/
Some tests had to be disabled for want of mockito in the SDK; tracking their reimplementation is here: https://github.com/dart-lang/sdk/issues/24994
BUG=24731
R=whesse@google.com
Review URL: https://codereview.chromium.org/1459683003 .
2015-11-19 14:52:54 -08:00
Sigmund Cherem
4ec3db6947
keep old location of libraries.dart in the generated SDK (fixes 23755)
...
R=kevmoo@google.com
Review URL: https://codereview.chromium.org//1216313002 .
2015-06-30 17:08:21 -07:00
pq
2c5e890fc7
Build fixes.
...
Long tail of fixes related to moving out of `pkg_tested`.
R=paulberry@google.com
Review URL: https://codereview.chromium.org//1162423002
2015-06-03 14:03:15 -07:00
pquitslund@google.com
4c03f25626
Analyzer build updates to use analyzer_cli.
...
The associated change to add analyzer_cli to DEPS is here:
https://codereview.chromium.org/1093173004/
R=brianwilkerson@google.com , paulberry@google.com , ricow@google.com , rnystrom@google.com
Review URL: https://codereview.chromium.org//1100553003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45321 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-21 20:59:31 +00:00
danrubel@google.com
521aef0d96
Replace Java based analyzer with Dart based analyzer when building SDK
...
* include analyzer dart files and snapshot in SDK
* modified bin/dartanalyzer to call dart based analyzer
* removed jar files in utils directory
BUG=dartbug.com/18289
R=ricow@google.com , scheglov@google.com
Review URL: https://codereview.chromium.org//240723006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35604 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-30 23:09:14 +00:00