7
0
Files
nodejs-electron/system-simdutf.patch
Bruno Pitrus 2a74265430 Accepting request 1117945 from home:dziobian:gulgul-ultron:19
- Use system simdutf on Fedora ≥38
  * system-simdutf.patch
- Use system vulkan-memory-allocator on Fedora 40/Rawhide
  * vulkan_memory_allocator.gn
  * vulkan_memory_allocator-upgrade.patch

OBS-URL: https://build.opensuse.org/request/show/1117945
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=101
2023-10-16 08:59:19 +00:00

31 lines
947 B
Diff

--- src/third_party/electron_node/BUILD.gn.old 2023-10-12 09:14:14.490589900 +0000
+++ src/third_party/electron_node/BUILD.gn 2023-10-15 07:18:47.581489100 +0000
@@ -44,6 +44,7 @@ declare_args() {
# Allows downstream packagers (eg. Linux distributions) to build Electron against system shared libraries.
use_system_cares = false
use_system_nghttp2 = false
+ use_system_simdutf = false
use_system_llhttp = false
use_system_histogram = false
}
@@ -211,7 +212,6 @@ component("node_lib") {
":node_js2c",
"deps/googletest:gtest",
"deps/base64",
- "deps/simdutf",
"deps/uvwasi",
"//third_party/zlib",
"//third_party/brotli:dec",
@@ -248,6 +248,11 @@ component("node_lib") {
} else {
deps += [ "deps/histogram" ]
}
+ if (use_system_simdutf) {
+ libs += [ "simdutf" ]
+ } else {
+ deps += [ "deps/simdutf" ]
+ }
frameworks = []
cflags_cc = [
"-Wno-deprecated-declarations",