Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(672)

Side by Side Diff: compiler/scripts/darta.sh

Issue 9702034: Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: junit tests fixed Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « compiler/lib/print.dart ('k') | compiler/scripts/darta_metrics.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash --posix 1 #!/bin/bash --posix
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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 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 SCRIPT_DIR=$(dirname $0) 8 SCRIPT_DIR=$(dirname $0)
9 DARTC_HOME=$(dirname $SCRIPT_DIR) 9 DARTA_HOME=${SCRIPT_DIR}
10 DARTC_LIBS=$DARTC_HOME/lib 10 # Assuming running from dart-sdk/analysis
11 DART_LIBDIR=${SCRIPT_DIR}/..
12
13 # Make sure the libdir looks right.
14 if [ ! -f ${DART_LIBDIR}/core/lib/core/core_runtime.dart -a -d ${DART_LIBDIR}/da rt-sdk ] ; then
15 # for running from out/<arch>/analysis
16 DART_LIBDIR=${DART_LIBDIR}/dart-sdk
17 fi
11 18
12 if [ -x /usr/libexec/java_home ]; then 19 if [ -x /usr/libexec/java_home ]; then
13 export JAVA_HOME=$(/usr/libexec/java_home -v '1.6+') 20 export JAVA_HOME=$(/usr/libexec/java_home -v '1.6+')
14 fi 21 fi
15 22
16 EXTRA_JVMARGS="-Xss2M " 23 EXTRA_JVMARGS="-Xss2M "
17 OS=`uname | tr [A-Z] [a-z]` 24 OS=`uname | tr [A-Z] [a-z]`
18 if [ "$OS" == "darwin" ] ; then 25 if [ "$OS" == "darwin" ] ; then
19 # Bump up the heap on Mac VMs, some of which default to 128M or less. 26 # 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 27 # 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 28 # this setting. Force to 32 bit client vm. 64 bit and server VM make for
22 # poor performance. 29 # poor performance.
23 EXTRA_JVMARGS+="-Xmx256M -client -d32" 30 EXTRA_JVMARGS+="-Xmx256M -client -d32"
24 fi 31 fi
25 32
26 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath "@CLASSPATH@" \ 33
27 com.google.dart.compiler.DartCompiler $@ 34 CLASSPATH="@CLASSPATH@"
35 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath $CLASSPATH \
36 com.google.dart.compiler.DartCompiler --dart-sdk ${DART_LIBDIR} $@
37
OLDNEW
« no previous file with comments | « compiler/lib/print.dart ('k') | compiler/scripts/darta_metrics.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698