From: Peter Collingbourne Date: Tue, 8 Jan 2019 04:00:22 +0000 (+0000) Subject: gn build: Stop passing -o to ar. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=249f5599bf4ff21dff8077be01e7776e66c9942b;p=llvm 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350604 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/gn/build/toolchain/BUILD.gn b/utils/gn/build/toolchain/BUILD.gn index 927a53d9d63..e1254afc0f5 100644 --- a/utils/gn/build/toolchain/BUILD.gn +++ b/utils/gn/build/toolchain/BUILD.gn @@ -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 = [