e1c8e996b7
Almost no calls are going to work at this point, but core.js can load now and there is enough in place to continue to load sunflower. R=sigmund@google.com Review URL: https://codereview.chromium.org/1020043002
24 lines
722 B
Bash
Executable File
24 lines
722 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
# switch to the root directory of dev_compiler
|
|
cd $( dirname "${BASH_SOURCE[0]}" )/..
|
|
|
|
echo "*** Patching SDK"
|
|
rm -r test/generated_sdk || true
|
|
dart -c tool/patch_sdk.dart tool/input_sdk test/generated_sdk
|
|
|
|
echo "*** Compiling SDK to JavaScript"
|
|
if [[ -d lib/runtime/dart ]] ; then
|
|
rm -r lib/runtime/dart
|
|
fi
|
|
|
|
# TODO(jmesserly): for now we're suppressing errors in SDK compilation
|
|
dart -c bin/devc.dart --no-source-maps --sdk-check --force-compile -l shout \
|
|
--dart-sdk test/generated_sdk -o lib/runtime/ dart:core || true
|
|
|
|
if [[ ! -f lib/runtime/dart/core.js ]] ; then
|
|
echo 'core.js not found, assuming build failed.'
|
|
echo './tool/build_sdk.sh can be run to reproduce this.'
|
|
exit 1
|
|
fi
|