File: build-Fix-incorrect-syntax-for-error-limit.patch

package info (click to toggle)
node-undici 5.15.0%2Bdfsg1%2B~cs20.10.9.3-1%2Bdeb12u4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,448 kB
  • sloc: javascript: 55,086; ansic: 936; makefile: 97
file content (26 lines) | stat: -rw-r--r-- 785 bytes parent folder | download
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
From: Ryan Gonzalez <ryan.gonzalez@collabora.com>
Date: Mon, 12 Feb 2024 18:00:22 -0600
Subject: build: Fix incorrect syntax for --error-limit

lld 15+ removed support for single dashes:

https://github.com/llvm/llvm-project/commit/87628f5804e23a40986692f6cdcf66654ce3f017

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
---
 llhttp/bin/build_wasm.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llhttp/bin/build_wasm.ts b/llhttp/bin/build_wasm.ts
index d0fb1ad..7286432 100644
--- a/llhttp/bin/build_wasm.ts
+++ b/llhttp/bin/build_wasm.ts
@@ -61,7 +61,7 @@ execSync(`${WASI_ROOT}/bin/clang \
  -fvisibility=hidden \
  -mexec-model=reactor \
  -Wl,-lc \
- -Wl,-error-limit=0 \
+ -Wl,--error-limit=0 \
  -Wl,-O3 \
  -Wl,--lto-O3 \
  -Wl,--strip-all \