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
mac [infra] Fix OWNERS files 2022-03-03 09:56:33 +00:00
rust
sanitizers [infra] Fix OWNERS files 2022-03-03 09:56:33 +00:00
secondary/third_party
toolchain [infra] Error, don't crash setup_toolchain.py 2022-05-02 13:53:00 +00:00
win
.gitignore
detect_host_arch.py
executable_suffix.gni
gn_helpers.py
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
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.