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

Side by Side Diff: tool/build_sdk.sh

Issue 1327573002: make build_sdk more incremental (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 set -e 2 set -e
3 # switch to the root directory of dev_compiler 3 # switch to the root directory of dev_compiler
4 cd $( dirname "${BASH_SOURCE[0]}" )/.. 4 cd $( dirname "${BASH_SOURCE[0]}" )/..
5 5
6 echo "*** Patching SDK" 6 echo "*** Patching SDK"
7 rm -r tool/generated_sdk || true
8 dart -c tool/patch_sdk.dart tool/input_sdk tool/generated_sdk 7 dart -c tool/patch_sdk.dart tool/input_sdk tool/generated_sdk
9 8
10 echo "*** Compiling SDK to JavaScript" 9 echo "*** Compiling SDK to JavaScript"
11 if [[ -d lib/runtime/dart ]] ; then
12 rm -r lib/runtime/dart
13 fi
14 10
15 # TODO(jmesserly): this builds dart:js, which pulls in dart:core and many others
16 # transitively. Ideally we could pass them explicitly, though:
17 # https://github.com/dart-lang/dev_compiler/issues/219
18 dart -c bin/devc.dart --no-source-maps --arrow-fn-bind-this --sdk-check \ 11 dart -c bin/devc.dart --no-source-maps --arrow-fn-bind-this --sdk-check \
19 --force-compile -l warning --dart-sdk tool/generated_sdk -o lib/runtime/ \ 12 --force-compile -l warning --dart-sdk tool/generated_sdk -o lib/runtime/ \
20 dart:js dart:mirrors \ 13 dart:js dart:mirrors \
21 > tool/sdk_expected_errors.txt || true 14 > tool/sdk_expected_errors.txt || true
22
23 if [[ ! -f lib/runtime/dart/core.js ]] ; then
24 echo 'core.js not found, assuming build failed.'
25 echo './tool/build_sdk.sh can be run to reproduce this.'
26 exit 1
27 fi
OLDNEW
« lib/src/compiler.dart ('K') | « lib/src/compiler.dart ('k') | tool/patch_sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698