[llvm] r357660 - [gn] Use "$link /lib" for archives instead of lib.exe
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 3 17:31:19 PDT 2019
Author: rnk
Date: Wed Apr 3 17:31:19 2019
New Revision: 357660
URL: http://llvm.org/viewvc/llvm-project?rev=357660&view=rev
Log:
[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
Modified:
llvm/trunk/utils/gn/build/toolchain/BUILD.gn
Modified: llvm/trunk/utils/gn/build/toolchain/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/build/toolchain/BUILD.gn?rev=357660&r1=357659&r2=357660&view=diff
==============================================================================
--- llvm/trunk/utils/gn/build/toolchain/BUILD.gn (original)
+++ llvm/trunk/utils/gn/build/toolchain/BUILD.gn Wed Apr 3 17:31:19 2019
@@ -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",
More information about the llvm-commits
mailing list