dart-sdk/build
Clement Skau 81f6cc144e [infra] Error, don't crash setup_toolchain.py
In case the environment is incorrectly set on Windows (e.g.
GYP_MSVS_OVERRIDE_PATH pointing to a non-existing path), the
setup_toolchain.py script may raise an exception.

The script attempts to run a subprocess to gather the environment
variables. But it does not check that the process actually
succeeded.
In case the process fails the environment data will be invalid and
the script will ultimately raise an exception.

This change adds a check for the process failing, and gracefully
warns and exits the script instead.

TEST=Manual build on Windows.
Change-Id: I3624bdf98e0ebe48b403825a90ce2e86c2ed8008
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/242860
Commit-Queue: Clement Skau <cskau@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
2022-05-02 13:53:00 +00:00
..
config Revert "[build] Fix Android build for ARM64 Mac." 2022-04-20 23:13:29 +00:00
dart Replace a bunch of references to .packages 2021-10-12 20:16:15 +00:00
fuchsia [build] Add support for building for Fuchsia from Mac. 2021-10-13 21:14:56 +00:00
linux [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
mac [infra] Fix OWNERS files 2022-03-03 09:56:33 +00:00
rust [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
sanitizers [infra] Fix OWNERS files 2022-03-03 09:56:33 +00:00
secondary/third_party [build] Add stub for third_party/android_tools for updated zlib. 2021-02-05 03:53:42 +00:00
toolchain [infra] Error, don't crash setup_toolchain.py 2022-05-02 13:53:00 +00:00
win [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
.gitignore [infra] Remove wheezy left overs from SDK 2020-06-04 18:32:29 +00:00
detect_host_arch.py [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
executable_suffix.gni
gn_helpers.py Fix gn helper script to create *valid* strings for settings containing backslashes. 2021-05-19 12:35:16 +00:00
gn_run_binary.py [build] Make app snapshot build failures copy/pastable. 2021-10-14 11:51:32 +00:00
OWNERS [infra] Give VM engineers OWNERS over tools/gn.py et al. 2022-04-25 17:47:23 +00:00
README.dart.md fix(docs): corrects common typos in project documentation 2021-05-18 15:48:18 +00:00
vs_toolchain.py [build] Toolchain setup for ARM64 Windows. 2022-04-20 17:21:58 +00:00

This directory was taken from a snapshot of flutter/engine/src/build/.

The snapshot was taken with a recursive copy cp -R of the directory from the flutter repository.

The contents has now diverged significantly from Flutter, and is maintained independently by the Dart team. It is used to support the GN build system.