OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2017, 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 REPO_DIR="$(cd ${BASH_SOURCE%/*} && git rev-parse --show-toplevel)" | 8 REPO_DIR="$(cd ${BASH_SOURCE%/*} && git rev-parse --show-toplevel)" |
9 | 9 |
10 DART_VM="${REPO_DIR}/sdk/bin/dart" | 10 DART_VM="${REPO_DIR}/sdk/bin/dart" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 shift | 51 shift |
52 PATCHED_SDK_DIR=$( | 52 PATCHED_SDK_DIR=$( |
53 ls -d {xcodebuild,out}/${DART_CONFIGURATION}/patched_sdk 2>/dev/null \ | 53 ls -d {xcodebuild,out}/${DART_CONFIGURATION}/patched_sdk 2>/dev/null \ |
54 | head -1) | 54 | head -1) |
55 exec "${DART_VM}" -DDFE_VERBOSE=true \ | 55 exec "${DART_VM}" -DDFE_VERBOSE=true \ |
56 --kernel-binaries=${PATCHED_SDK_DIR} \ | 56 --kernel-binaries=${PATCHED_SDK_DIR} \ |
57 --dfe="${REPO_DIR}/utils/kernel-service/kernel-service.dart" "$@" | 57 --dfe="${REPO_DIR}/utils/kernel-service/kernel-service.dart" "$@" |
58 ;; | 58 ;; |
59 testing) | 59 testing) |
60 SCRIPT="${REPO_DIR}/pkg/testing/bin/testing.dart" | 60 SCRIPT="${REPO_DIR}/pkg/testing/bin/testing.dart" |
61 set -- "$@" "--config=${REPO_DIR}/pkg/front_end/test/fasta/testing.json" | 61 set -- "$@" "--config=${REPO_DIR}/pkg/front_end/testing.json" |
62 ;; | 62 ;; |
63 generate-messages) SCRIPT="${TOOL_DIR}/generate_messages.dart";; | 63 generate-messages) SCRIPT="${TOOL_DIR}/generate_messages.dart";; |
64 *) | 64 *) |
65 stop "'$1' isn't a valid subcommand." | 65 stop "'$1' isn't a valid subcommand." |
66 ;; | 66 ;; |
67 esac | 67 esac |
68 | 68 |
69 shift | 69 shift |
70 | 70 |
71 exec "${DART_VM}" -c "${SCRIPT}" "$@" | 71 exec "${DART_VM}" -c "${SCRIPT}" "$@" |
OLD | NEW |