File system-simdutf.patch of Package nodejs-electron
--- src/third_party/electron_node/deps/simdutf/BUILD.gn.old 2023-10-13 11:35:11.896370000 +0200
+++ src/third_party/electron_node/deps/simdutf/BUILD.gn 2023-10-17 19:29:35.882793400 +0200
@@ -1,15 +1,26 @@
+declare_args() {
+ use_system_simdutf = false
+}
+
config("simdutf_config") {
+ if(use_system_simdutf) {
+ libs = ["simdutf"]
+ } else {
include_dirs = [ "." ]
+ }
}
static_library("simdutf") {
+ if(!use_system_simdutf) {
include_dirs = [ "." ]
sources = [
"simdutf.cpp",
]
+ }
public_configs = [ ":simdutf_config" ]
+ if(!use_system_simdutf) {
cflags_cc = [
"-Wno-ambiguous-reversed-operator",
"-Wno-c++98-compat-extra-semi",
@@ -17,4 +28,5 @@ static_library("simdutf") {
"-Wno-unused-const-variable",
"-Wno-unused-function",
]
+ }
}