OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import("executable_suffix.gni") |
| 6 |
| 7 _dart_root = rebase_path("..") |
| 8 |
| 9 _prebuilt_dart_exe = "$_dart_root/tools/sdks/$host_os/dart-sdk/bin/dart" |
| 10 |
| 11 # Our gn_run_binary swallows output unless there is an error. |
| 12 _prebuilt_dart_exe_trial = exec_script("gn_run_binary.py", |
| 13 [_prebuilt_dart_exe, "--version"], "string") |
| 14 if (_prebuilt_dart_exe_trial == "") { |
| 15 prebuilt_dart_exe_works = true |
| 16 } else { |
| 17 prebuilt_dart_exe_works = false |
| 18 } |
OLD | NEW |