mirror of
https://github.com/dart-lang/sdk
synced 2024-09-06 00:59:09 +00:00
Don't run async/await compiler from bin/pub.
R=nweiz@google.com Review URL: https://codereview.chromium.org//761173003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42051 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
cd3d01103b
commit
379ee11f6d
|
@ -56,11 +56,6 @@ fi
|
|||
DART="$BUILD_DIR/dart-sdk/bin/dart"
|
||||
PACKAGES_DIR="$BUILD_DIR/pub_packages/"
|
||||
|
||||
# Compile async/await down to vanilla Dart.
|
||||
# TODO(rnystrom): Remove this when #104 is fixed.
|
||||
ASYNC_COMPILER="$SDK_DIR/lib/_internal/pub/bin/async_compile.dart"
|
||||
"$DART" "--package-root=$PACKAGES_DIR" "$ASYNC_COMPILER" "$BUILD_DIR"
|
||||
|
||||
# Run the async/await compiled pub.
|
||||
PUB="$SDK_DIR/lib/_internal/pub_generated/bin/pub.dart"
|
||||
exec "$DART" "${VM_OPTIONS[@]}" "--package-root=$PACKAGES_DIR" "$PUB" "$@"
|
||||
|
|
|
@ -34,11 +34,6 @@ set BUILD_DIR=%SDK_DIR%\..\build\ReleaseIA32
|
|||
set PACKAGES_DIR=%BUILD_DIR%\pub_packages
|
||||
set DART=%BUILD_DIR%\dart-sdk\bin\dart
|
||||
|
||||
rem Compile async/await down to vanilla Dart.
|
||||
rem TODO(rnystrom): Remove this when #104 is fixed.
|
||||
set ASYNC_COMPILER="%SDK_DIR%"\lib\_internal\pub\bin\async_compile.dart
|
||||
"%DART%" --package-root="%PACKAGES_DIR%" "%ASYNC_COMPILER%" "%BUILD_DIR%"
|
||||
|
||||
rem Run the async/await compiled pub.
|
||||
set PUB="%SDK_DIR%\lib\_internal\pub_generated\bin\pub.dart"
|
||||
"%DART%" %VM_OPTIONS% --package-root="%PACKAGES_DIR%" "%PUB%" %*
|
||||
|
@ -59,4 +54,4 @@ if not "%current%"=="" call :follow_links "%current%", result
|
|||
endlocal & set %~2=%result%
|
||||
goto :eof
|
||||
|
||||
:end
|
||||
:end
|
||||
|
|
Loading…
Reference in a new issue