Index: sdk/bin/dart2js_sdk.bat |
diff --git a/sdk/bin/dart2js.bat b/sdk/bin/dart2js_sdk.bat |
old mode 100644 |
new mode 100755 |
similarity index 88% |
copy from sdk/bin/dart2js.bat |
copy to sdk/bin/dart2js_sdk.bat |
index ed460c89df2f09b9e97d03a7a1c6bc6aa603a9af..f5ed1f0aa44d00062c0d2dbc91903dbce3a6378e |
--- a/sdk/bin/dart2js.bat |
+++ b/sdk/bin/dart2js_sdk.bat |
@@ -17,7 +17,6 @@ for %%i in ("%BIN_DIR%\..\") do set SDK_DIR=%%~fi |
rem Remove trailing backslash if there is one |
IF %SDK_DIR:~-1%==\ set SDK_DIR=%SDK_DIR:~0,-1% |
-set DART2JS=%SDK_DIR%\lib\_internal\compiler\implementation\dart2js.dart |
set DART=%BIN_DIR%\dart |
set SNAPSHOT=%BIN_DIR%\snapshots\dart2js.dart.snapshot |
@@ -40,11 +39,7 @@ if not "_%DART_VM_OPTIONS%_" == "__" ( |
set EXTRA_VM_OPTIONS=%EXTRA_VM_OPTIONS% %DART_VM_OPTIONS% |
) |
-if exist "%SNAPSHOT%" ( |
- "%DART%" %EXTRA_VM_OPTIONS% "%SNAPSHOT%" %EXTRA_OPTIONS% %* |
-) else ( |
- "%DART%" %EXTRA_VM_OPTIONS% "%DART2JS%" %EXTRA_OPTIONS% %* |
-) |
+"%DART%" %EXTRA_VM_OPTIONS% "%SNAPSHOT%" %EXTRA_OPTIONS% %* |
endlocal |