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" ] public_configs = [ ":zstd_config" ]
sources = gypi_values.zstd_sources sources = gypi_values.zstd_sources
defines = [ "XXH_NAMESPACE=ZSTD_", "ZSTD_MULTITHREAD", "ZSTD_DISABLE_ASM" ] defines = [ "XXH_NAMESPACE=ZSTD_", "ZSTD_MULTITHREAD", "ZSTD_DISABLE_ASM" ]
cflags_c = [ "-Wno-unused-function" ]
if (is_posix) { if (is_posix) {
ldflags = [ "-pthread" ] ldflags = [ "-pthread" ]

View File

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