| Index: build/toolchain/win/setup_toolchain.py
|
| diff --git a/build/toolchain/win/setup_toolchain.py b/build/toolchain/win/setup_toolchain.py
|
| index 03478e6a60bdb4e88af7d51b047a31fed5a279fd..dcb09bb96f93473ebde586673cbc4135b73069f0 100644
|
| --- a/build/toolchain/win/setup_toolchain.py
|
| +++ b/build/toolchain/win/setup_toolchain.py
|
| @@ -150,16 +150,18 @@
|
| vc_bin_dir = os.path.realpath(path)
|
| break
|
|
|
| - # Add extra include directories here that need to be in front of the
|
| - # installed and packaged include directories. This may be needed in
|
| - # order to force a particular SDK version, such as to get VS 2013 to use
|
| - # the Windows 10 SDK. Beware of making the INCLUDE variable excessively
|
| - # long and be sure to make corresponding changes to build\common.gypi.
|
| - # Not currently used.
|
| - #if win_sdk_path:
|
| - # additional_includes = ('{sdk_dir}\\Include\\10.0.10586.0\\um;').format(
|
| - # sdk_dir=win_sdk_path)
|
| - # env['INCLUDE'] = additional_includes + env['INCLUDE']
|
| + # The Windows SDK include directories must be first. They both have a sal.h,
|
| + # and the SDK one is newer and the SDK uses some newer features from it not
|
| + # present in the Visual Studio one.
|
| + # Having the Windows SDK first is also the only way to control which SDK
|
| + # version is used.
|
| +
|
| + if win_sdk_path:
|
| + additional_includes = ('{sdk_dir}\\Include\\10.0.10586.0\\shared;' +
|
| + '{sdk_dir}\\Include\\10.0.10586.0\\um;' +
|
| + '{sdk_dir}\\Include\\10.0.10586.0\\winrt;').format(
|
| + sdk_dir=win_sdk_path)
|
| + env['INCLUDE'] = additional_includes + env['INCLUDE']
|
| env_block = _FormatAsEnvironmentBlock(env)
|
| with open('environment.' + cpu, 'wb') as f:
|
| f.write(env_block)
|
|
|