Print debug info when setting up the toolchain fails. (#610)
diff --git a/build/toolchain/win/setup_toolchain.py b/build/toolchain/win/setup_toolchain.py
index ffc919f..dbbee74 100644
--- a/build/toolchain/win/setup_toolchain.py
+++ b/build/toolchain/win/setup_toolchain.py
@@ -56,7 +56,8 @@
environment."""
# Check if we are running in the SDK command line environment and use
# the setup script from the SDK if so.
- assert target_cpu in ('x86', 'x64', 'arm64')
+ accepted_cpus = ('x86', 'x64', 'arm64')
+ assert target_cpu in accepted_cpus, '%s not in accepted cpus %s' % (target_cpu, accepted_cpus)
if bool(int(os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN', 1))) and sdk_dir:
return [os.path.normpath(os.path.join(sdk_dir, 'Bin/SetEnv.Cmd')),
'/' + target_cpu]