Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3138)

Unified Diff: build/vs_toolchain.py

Issue 603143002: gn: Fix more build issues on Win (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: windows sdk dir Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/vs_toolchain.py
diff --git a/build/vs_toolchain.py b/build/vs_toolchain.py
index 44c30171377d3045721b928faa3db6d0f55588a7..bdedd6fa8822f121da2687d338cbdf3f58140575 100644
--- a/build/vs_toolchain.py
+++ b/build/vs_toolchain.py
@@ -164,6 +164,13 @@ def GetToolchainDir():
"""Gets location information about the current toolchain (must have been
previously updated by 'update'). This is used for the GN build."""
SetEnvironmentAndGetRuntimeDllDirs()
+
+ # If WINDOWSSDKDIR is not set, search the default SDK path and set it.
brettw 2014/09/29 16:45:24 I'd like scottmg to check this one.
scottmg 2014/09/29 18:14:28 I think it'd be better to do this in build/config/
ckocagil 2014/09/29 21:47:09 We wouldn't be able to check whether the path exis
scottmg 2014/09/29 22:00:19 Ah, OK. lgtm then. I'm pretty "excited" that we ha
+ if not 'WINDOWSSDKDIR' in os.environ:
+ default_sdk_path = 'C:\\Program Files (x86)\\Windows Kits\\8.0'
+ if os.path.isdir(default_sdk_path):
+ os.environ['WINDOWSSDKDIR'] = default_sdk_path
+
print '''vs_path = "%s"
sdk_path = "%s"
vs_version = "%s"

Powered by Google App Engine
This is Rietveld 408576698