]> granicus.if.org Git - llvm/commitdiff
gn build: Stop passing -o to ar.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 8 Jan 2019 04:00:22 +0000 (04:00 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 8 Jan 2019 04:00:22 +0000 (04:00 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350604 91177308-0d34-0410-b5e6-96231b3b80d8

utils/gn/build/toolchain/BUILD.gn

index 927a53d9d63153e7b242068a8f4e723f7d867c04..e1254afc0f51fd16dc88680fc8d6c21a2fa7bad0 100644 (file)
@@ -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 = [