Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 test/generated_sdk || true | 7 rm -r test/generated_sdk || true |
| 8 dart -c tool/patch_sdk.dart tool/input_sdk test/generated_sdk | 8 dart -c tool/patch_sdk.dart tool/input_sdk test/generated_sdk |
| 9 | 9 |
| 10 echo "*** Compiling SDK to JavaScript" | 10 echo "*** Compiling SDK to JavaScript" |
| 11 if [[ -d lib/runtime/dart ]] ; then | 11 if [[ -d lib/runtime/dart ]] ; then |
| 12 rm -r lib/runtime/dart | 12 rm -r lib/runtime/dart |
| 13 fi | 13 fi |
| 14 | 14 |
| 15 # TODO(jmesserly): for now we're suppressing errors in SDK compilation | 15 # TODO(jmesserly): for now we're suppressing errors in SDK compilation |
| 16 dart -c bin/devc.dart --no-source-maps --sdk-check --force-compile -l shout \ | 16 mkdir -p test/generated_sdk/actual |
|
Leaf
2015/05/28 16:01:38
What is this for? The actual directory doesn't se
vsm
2015/05/28 16:15:03
Removed. Vestige of previous version. Thanks for
| |
| 17 --dart-sdk test/generated_sdk -o lib/runtime/ dart:core || true | 17 dart -c bin/devc.dart --no-source-maps --sdk-check --force-compile -l warning \ |
| 18 --dart-sdk test/generated_sdk -o lib/runtime/ dart:core \ | |
| 19 > test/generated_sdk/sdk_errors.txt || true | |
| 20 | |
| 21 if ! diff tool/sdk_expected_errors.txt test/generated_sdk/sdk_errors.txt ; then | |
| 22 echo | |
| 23 echo 'SDK errors have changed. To update expectations, run:' | |
| 24 echo '$ cp test/generated_sdk/sdk_errors.txt tool/sdk_expected_errors.txt' | |
| 25 exit 1 | |
| 26 fi | |
| 18 | 27 |
| 19 if [[ ! -f lib/runtime/dart/core.js ]] ; then | 28 if [[ ! -f lib/runtime/dart/core.js ]] ; then |
| 20 echo 'core.js not found, assuming build failed.' | 29 echo 'core.js not found, assuming build failed.' |
| 21 echo './tool/build_sdk.sh can be run to reproduce this.' | 30 echo './tool/build_sdk.sh can be run to reproduce this.' |
| 22 exit 1 | 31 exit 1 |
| 23 fi | 32 fi |
| OLD | NEW |