Commit d4b5b1e6 authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

Attempt to set VCToolsInstallDir in SetEnv script.

clang-cl relies on this env var being set for 2017 to find the linker.

Bug: 772123
Change-Id: Id03896504d38dc706b2bd96a2c3834c6cb9db9fe
TBR=brucedawson
Reviewed-on: https://chromium-review.googlesource.com/709697
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: 's avatarNico Weber <thakis@chromium.org>
parent 6fd24843
......@@ -256,14 +256,17 @@ def GenerateSetEnvCmd(target_dir):
])
# Common to x86 and x64
env = collections.OrderedDict([
# Yuck: These two have a trailing \ character. No good way to represent this
# in an OS-independent way.
# Yuck: These have a trailing \ character. No good way to represent this in
# an OS-independent way.
('VSINSTALLDIR', [['..', '..\\']]),
('VCINSTALLDIR', [['..', '..', 'VC\\']]),
('INCLUDE', include_dirs),
])
# x86. Always use amd64_x86 cross, not x86 on x86.
if VS_VERSION == '2017':
env['VCToolsInstallDir'] = [['..', '..'] + vc_tools_parts[:]]
# Yuck: This one ends in a slash as well.
env['VCToolsInstallDir'][0][-1] += '\\'
env_x86 = collections.OrderedDict([
('PATH', [
['..', '..', 'win_sdk', 'bin', WIN_VERSION, 'x64'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment