1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 21:50:00 -05:00

build: regenerate BUILD.gn for cacheable windows toolchain

This commit is contained in:
Bert Belder 2018-08-28 01:59:38 +02:00
parent 7e3d9f8f2b
commit f47582bbc5
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -146,7 +146,7 @@ template("msvc_toolchain") {
# invocation requires higher cpu usage compared to ninja invocation, and
# the python wrapper is only needed to work around link.exe problems.
# TODO(thakis): Remove wrapper once lld-link can merge manifests without
# relying on mt.exe being in %PATH% on Windows.
# relying on mt.exe being in %PATH% on Windows, https://crbug.com/872740
linker_wrapper = "ninja -t msvc -e $env -- " # Note trailing space.
sys_lib_flags = ""
} else {
@ -299,21 +299,6 @@ template("msvc_toolchain") {
command = "$linker_wrapper$link /nologo ${sys_lib_flags}/OUT:$exename /PDB:$pdbname @$rspfile"
if (host_os == "win") {
shellprefix = "cmd /c"
} else {
shellprefix = ""
}
not_needed([ "shellprefix" ])
if (is_official_build) {
# On bots, the binary's PDB grow and eventually exceed 4G, causing the
# link to fail. As there's no utility to keeping the PDB around
# incrementally anyway in this config (because we're doing
# non-incremental LTCG builds), delete it before linking.
command = "$shellprefix $python_path $tool_wrapper_path delete-file $pdbname && $command"
}
default_output_extension = ".exe"
default_output_dir = "{{root_out_dir}}"
description = "LINK {{output}}"