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