[gn] Use "$link /lib" for archives instead of lib.exe

Summary:
This avoids the need to talk about lib.exe or llvm-lib.exe and it does
the right thing with LLD.

Reviewers: thakis

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60155

llvm-svn: 357660
This commit is contained in:
Reid Kleckner 2019-04-04 00:31:19 +00:00
parent 051bd16faf
commit cfdd0cb5d9
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ toolchain("win") {
}
tool("alink") {
command = "lib /nologo {{arflags}} /out:{{output}} {{inputs}}"
command = "$link /lib /nologo {{arflags}} /out:{{output}} {{inputs}}"
description = "LIB {{output}}"
outputs = [
"{{output_dir}}/{{target_output_name}}.lib",