Skip to content

Commit 5af35d1

Browse files
zcbenztargos
authored andcommitted
build: fix GN build failure
PR-URL: #57013 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent ccb8c12 commit 5af35d1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

deps/zstd/unofficial.gni

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ template("zstd_gn_build") {
1919
public_configs = [ ":zstd_config" ]
2020
sources = gypi_values.zstd_sources
2121
defines = [ "XXH_NAMESPACE=ZSTD_", "ZSTD_MULTITHREAD", "ZSTD_DISABLE_ASM" ]
22+
cflags_c = [ "-Wno-unused-function" ]
2223

2324
if (is_posix) {
2425
ldflags = [ "-pthread" ]

unofficial.gni

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ template("node_gn_build") {
7474
"-Wno-implicit-fallthrough",
7575
"-Wno-macro-redefined",
7676
"-Wno-missing-braces",
77+
"-Wno-range-loop-bind-reference",
7778
"-Wno-return-type",
7879
"-Wno-shadow",
7980
"-Wno-sometimes-uninitialized",
@@ -160,6 +161,7 @@ template("node_gn_build") {
160161
"deps/postject",
161162
"deps/sqlite",
162163
"deps/uvwasi",
164+
"deps/zstd",
163165
"//third_party/zlib",
164166
"$node_simdutf_path",
165167
"$node_v8_path:v8_libplatform",

0 commit comments

Comments
 (0)