From: Reid Kleckner Date: Thu, 4 Apr 2019 00:31:19 +0000 (+0000) Subject: [gn] Use "$link /lib" for archives instead of lib.exe X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe2046590d77fe74bf2d48a5335367749aaaadff;p=llvm [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357660 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/gn/build/toolchain/BUILD.gn b/utils/gn/build/toolchain/BUILD.gn index 21dfd06d5b1..a2c653ff1ce 100644 --- a/utils/gn/build/toolchain/BUILD.gn +++ b/utils/gn/build/toolchain/BUILD.gn @@ -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",