Index: build/vs_toolchain.py |
diff --git a/build/vs_toolchain.py b/build/vs_toolchain.py |
index 735827e94316f4125b42d41ed389719955050612..1e1fe46cf5d9496b19ddba2adaa460288c1b60f6 100644 |
--- a/build/vs_toolchain.py |
+++ b/build/vs_toolchain.py |
@@ -164,6 +164,12 @@ def GetToolchainDir(): |
"""Gets location information about the current toolchain (must have been |
previously updated by 'update'). This is used for the GN build.""" |
SetEnvironmentAndGetRuntimeDllDirs() |
+ depot_tools_win_toolchain = \ |
+ bool(int(os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN', '1'))) |
+ is_express = os.environ['GYP_MSVS_VERSION'][-1:] == "e" |
scottmg
2014/09/15 23:22:02
nit; just [-1] seems fine since you're comparing a
|
+ if not (depot_tools_win_toolchain or is_express or 'WDK_DIR' in os.environ): |
+ os.environ['WDK_DIR'] = "" |
scottmg
2014/09/15 23:22:02
nit; "" -> ''
|
+ |
print '''vs_path = "%s" |
sdk_path = "%s" |
vs_version = "%s" |