[llvm] r350604 - gn build: Stop passing -o to ar.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 7 20:00:22 PST 2019


Author: pcc
Date: Mon Jan  7 20:00:22 2019
New Revision: 350604

URL: http://llvm.org/viewvc/llvm-project?rev=350604&view=rev
Log:
gn build: Stop passing -o to ar.

The -o flag means something different to ar than what appears to be
intended here. Also, llvm-ar doesn't accept the flag in this position.

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

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=350604&r1=350603&r2=350604&view=diff
==============================================================================
--- llvm/trunk/utils/gn/build/toolchain/BUILD.gn (original)
+++ llvm/trunk/utils/gn/build/toolchain/BUILD.gn Mon Jan  7 20:00:22 2019
@@ -51,7 +51,7 @@ toolchain("unix") {
       # Remove the output file first so that ar doesn't try to modify the
       # existing file.
       command =
-          "rm -f {{output}} && ar rcsDT {{arflags}} -o {{output}} {{inputs}}"
+          "rm -f {{output}} && ar rcsDT {{arflags}} {{output}} {{inputs}}"
     }
     description = "AR {{output}}"
     outputs = [




More information about the llvm-commits mailing list