| OLD | NEW |
| (Empty) |
| 1 #!/bin/bash --posix | |
| 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 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. | |
| 5 | |
| 6 set -e | |
| 7 | |
| 8 SCRIPT_DIR=$(dirname $0) | |
| 9 DARTC_HOME=$(dirname $SCRIPT_DIR) | |
| 10 DARTC_LIBS=$DARTC_HOME/lib | |
| 11 | |
| 12 if [ -x /usr/libexec/java_home ]; then | |
| 13 export JAVA_HOME=$(/usr/libexec/java_home -v '1.6+') | |
| 14 fi | |
| 15 | |
| 16 EXTRA_JVMARGS="-Xss2M " | |
| 17 OS=`uname | tr [A-Z] [a-z]` | |
| 18 if [ "$OS" == "darwin" ] ; then | |
| 19 # Bump up the heap on Mac VMs, some of which default to 128M or less. | |
| 20 # Users can specify DART_JVMARGS in the environment to override | |
| 21 # this setting. Force to 32 bit client vm. 64 bit and server VM make for | |
| 22 # poor performance. | |
| 23 EXTRA_JVMARGS+="-Xmx256M -client -d32" | |
| 24 fi | |
| 25 | |
| 26 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath "@CLASSPATH@" \ | |
| 27 com.google.dart.compiler.DartCompiler $@ | |
| OLD | NEW |