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

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

Issue 9168009: Adds extra measure of safety to dartc.sh and dartc_test.sh (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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/scripts/dartc.sh ('k') | no next file » | 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 1 #!/bin/bash
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
7
6 case $(uname -s) in 8 case $(uname -s) in
7 *Linux*|*linux*) 9 *Linux*|*linux*)
8 OS="linux" 10 OS="linux"
9 ;; 11 ;;
10 Darwin) 12 Darwin)
11 OS="mac" 13 OS="mac"
12 ;; 14 ;;
13 *) 15 *)
14 OS="generic" 16 OS="generic"
15 ;; 17 ;;
(...skipping 12 matching lines...) Expand all
28 # Limit heap in order to detect any memory issues. 30 # Limit heap in order to detect any memory issues.
29 # On some system, the heap dynamically sizes to > 1GB. 31 # On some system, the heap dynamically sizes to > 1GB.
30 # Users can specify DART_JVMARGS in the environment to override 32 # Users can specify DART_JVMARGS in the environment to override
31 # these settings. 33 # these settings.
32 EXTRA_JVMARGS="-Xmx196M -Xss2M" 34 EXTRA_JVMARGS="-Xmx196M -Xss2M"
33 35
34 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -Dcom.google.dart.runner.d8="$D8_EXEC " \ 36 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -Dcom.google.dart.runner.d8="$D8_EXEC " \
35 -Dcom.google.dart.runner.progname="$DART_SCRIPT_NAME" \ 37 -Dcom.google.dart.runner.progname="$DART_SCRIPT_NAME" \
36 -classpath "@CLASSPATH@" \ 38 -classpath "@CLASSPATH@" \
37 com.google.dart.runner.DartRunner $@ 39 com.google.dart.runner.DartRunner $@
OLDNEW
« no previous file with comments | « compiler/scripts/dartc.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698