| OLD | NEW |
| 1 #!/bin/bash --posix | 1 #!/bin/bash --posix |
| 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 set -e | 6 set -e |
| 7 | 7 |
| 8 # Setting SCRIPT_DIR this way is ugly, but is needed to handle the case where | 8 # Setting SCRIPT_DIR this way is ugly, but is needed to handle the case where |
| 9 # dart-sdk/bin has been symlinked to. On MacOS, readlink doesn't work | 9 # dart-sdk/bin has been symlinked to. On MacOS, readlink doesn't work |
| 10 # with this case. | 10 # with this case. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 # On other architectures | 70 # On other architectures |
| 71 # -batch invocations will do better with a server vm | 71 # -batch invocations will do better with a server vm |
| 72 # invocations for analyzing a single file do better with a client vm | 72 # invocations for analyzing a single file do better with a client vm |
| 73 if [ $FOUND_BATCH = 0 ] ; then | 73 if [ $FOUND_BATCH = 0 ] ; then |
| 74 EXTRA_JVMARGS+=" -client " | 74 EXTRA_JVMARGS+=" -client " |
| 75 fi | 75 fi |
| 76 fi | 76 fi |
| 77 | 77 |
| 78 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath "@CLASSPATH@" \ | 78 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath "@CLASSPATH@" \ |
| 79 com.google.dart.compiler.DartCompiler ${DART_SDK} $@ | 79 com.google.dart.compiler.DartCompiler ${DART_SDK} $@ |
| OLD | NEW |