build: fix GN build failure

PR-URL: https://github.com/nodejs/node/pull/57013
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
Cheng 2025-02-15 21:11:49 +09:00 committed by GitHub
parent 59cdd4f1c2
commit 44e2671b44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@ template("zstd_gn_build") {
public_configs = [ ":zstd_config" ]
sources = gypi_values.zstd_sources
defines = [ "XXH_NAMESPACE=ZSTD_", "ZSTD_MULTITHREAD", "ZSTD_DISABLE_ASM" ]
cflags_c = [ "-Wno-unused-function" ]
if (is_posix) {
ldflags = [ "-pthread" ]

View File

@ -74,6 +74,7 @@ template("node_gn_build") {
"-Wno-implicit-fallthrough",
"-Wno-macro-redefined",
"-Wno-missing-braces",
"-Wno-range-loop-bind-reference",
"-Wno-return-type",
"-Wno-shadow",
"-Wno-sometimes-uninitialized",
@ -160,6 +161,7 @@ template("node_gn_build") {
"deps/postject",
"deps/sqlite",
"deps/uvwasi",
"deps/zstd",
"//third_party/zlib",
"$node_simdutf_path",
"$node_v8_path:v8_libplatform",