Chromium Code Reviews| 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" |