mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
![Zachary Anderson](/assets/img/avatar_default.png)
Setting this build argument to something other than host_toolchain will cause the build target create_host_sdk to be exposed. That target will build the Dart SDK with the toolchain specified by dart_host_sdk_toolchain. TO-549 Change-Id: Ida92521724cf7af34b34fb8c6d3514a226c48dd4 Reviewed-on: https://dart-review.googlesource.com/18145 Reviewed-by: Zach Anderson <zra@google.com> Commit-Queue: Zach Anderson <zra@google.com>
19 lines
839 B
Plaintext
19 lines
839 B
Plaintext
# Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
declare_args() {
|
|
# In a cross-build, this should be set to the toolchain to use to build a Dart
|
|
# SDK to run on the host that targets the host. This is distinct from
|
|
# 'host_toolchain', which in a cross-build builds artifacts to run on the host
|
|
# that target the target architecture.
|
|
dart_host_sdk_toolchain = host_toolchain
|
|
}
|
|
|
|
# dart_host_toolchain should be used in the Dart tree instead of host_toolchain.
|
|
# It will ensure that we are selecting the correct host toolchain.
|
|
dart_host_toolchain = host_toolchain
|
|
if (current_toolchain == dart_host_sdk_toolchain) {
|
|
dart_host_toolchain = dart_host_sdk_toolchain
|
|
}
|