dart-sdk/build/toolchain
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
..
android [BUILD] - Format gn files, this is being done to ensure the unfork CL 2020-03-10 21:56:11 +00:00
fuchsia [vm] Fuchsia arm64 build 2020-12-10 12:15:17 +00:00
linux [build] Fix building on an ARM64 Linux host. 2022-03-22 00:50:18 +00:00
mac [build] Setup cross-build for ARM64 Mac; still doesn't link. 2021-02-09 23:59:18 +00:00
win [infra] Error, don't crash setup_toolchain.py 2022-05-02 13:53:00 +00:00
ccache.gni
gcc_toolchain.gni Revert "[vm/build] Workaround for ld 2.19 crash on ARM" 2020-12-11 21:49:11 +00:00
get_concurrent_links.py [infra] Migrate scripts to python3 2021-04-15 10:10:20 +00:00
goma.gni [build] GN flag to use relative symlink to Xcode 2020-03-19 08:33:17 +00:00