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

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 2 14:57:59 PDT 2019


rnk created this revision.
rnk added a reviewer: thakis.
Herald added a project: LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D60155

Files:
  llvm/utils/gn/build/toolchain/BUILD.gn


Index: llvm/utils/gn/build/toolchain/BUILD.gn
===================================================================
--- llvm/utils/gn/build/toolchain/BUILD.gn
+++ llvm/utils/gn/build/toolchain/BUILD.gn
@@ -225,7 +225,7 @@
   }
 
   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",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60155.193369.patch
Type: text/x-patch
Size: 494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190402/175257f7/attachment.bin>


More information about the llvm-commits mailing list