summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2019-01-08 04:00:22 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2019-01-08 04:00:22 +0000
commitbc9c8a28bc86c680c84d8df937239885be283e5c (patch)
tree02ba276932d728400094aff19b99e7660e662020
parent8f9346922c2e9a8dff14cbaeb2b2eb7646b49ba3 (diff)
downloadbcm5719-llvm-bc9c8a28bc86c680c84d8df937239885be283e5c.tar.gz
bcm5719-llvm-bc9c8a28bc86c680c84d8df937239885be283e5c.zip
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 llvm-svn: 350604
-rw-r--r--llvm/utils/gn/build/toolchain/BUILD.gn2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/gn/build/toolchain/BUILD.gn b/llvm/utils/gn/build/toolchain/BUILD.gn
index 927a53d9d63..e1254afc0f5 100644
--- a/llvm/utils/gn/build/toolchain/BUILD.gn
+++ b/llvm/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 = [
OpenPOWER on IntegriCloud