-
Notifications
You must be signed in to change notification settings - Fork 1
/
chromium-nacl-llvm-ar.patch
26 lines (25 loc) · 1.12 KB
/
chromium-nacl-llvm-ar.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index ca6ff2b13809..e96b04df99fe 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1708,7 +1708,7 @@ config("thin_archive") {
# have a "thin archive" mode (it does accept -T, but it means truncating
# archive names to 16 characters, which is not what we want).
if ((is_posix && !is_nacl && !is_mac && !is_ios) || is_fuchsia) {
- arflags = [ "-T" ]
+ arflags = [ "T" ]
} else if (is_win && use_lld) {
arflags = [ "/llvmlibthin" ]
}
diff --git a/build/toolchain/gcc_toolchain.gni b/build/toolchain/gcc_toolchain.gni
index 7326a840dc58..01927b126d1b 100644
--- a/build/toolchain/gcc_toolchain.gni
+++ b/build/toolchain/gcc_toolchain.gni
@@ -377,7 +377,7 @@ template("gcc_toolchain") {
} else {
rspfile = "{{output}}.rsp"
rspfile_content = "{{inputs}}"
- command = "\"$ar\" {{arflags}} -r -c -s -D {{output}} @\"$rspfile\""
+ command = "\"$ar\" rcsD{{arflags}} {{output}} @\"$rspfile\""
}
# Remove the output file first so that ar doesn't try to modify the