| Index: compiler/scripts/dartc.sh
|
| diff --git a/compiler/scripts/dartc.sh b/compiler/scripts/dartc.sh
|
| index 82438929780fd94b469d29121b565da648abb7be..015f812781a179d5b9657e92f46c6f33d7cb07df 100755
|
| --- a/compiler/scripts/dartc.sh
|
| +++ b/compiler/scripts/dartc.sh
|
| @@ -11,5 +11,12 @@ if [ -x /usr/libexec/java_home ]; then
|
| export JAVA_HOME=$(/usr/libexec/java_home -v '1.6+')
|
| fi
|
|
|
| -exec java $DART_JVMARGS -ea -classpath "@CLASSPATH@" \
|
| +EXTRA_JVMARGS=
|
| +OS=`uname | tr [A-Z] [a-z]`
|
| +if [ "$OS" == "darwin" ] ; then
|
| + # Bump up the heap on Mac VMs
|
| + EXTRA_JVMARGS=-Xmx1024M
|
| +fi
|
| +
|
| +exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath "@CLASSPATH@" \
|
| com.google.dart.compiler.DartCompiler $@
|
|
|