File: shared_simdutf.patch

package info (click to toggle)
nodejs 24.11.1%2Bdfsg%2B~cs24.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 252,928 kB
  • sloc: cpp: 1,728,964; javascript: 473,397; ansic: 113,512; python: 60,329; sh: 4,344; makefile: 3,026; asm: 1,728; pascal: 1,562; perl: 494; lisp: 222; xml: 39
file content (51 lines) | stat: -rw-r--r-- 1,527 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Description: Let v8 link against shared system simdutf
Author: Jérémy Lal <kapouer@melix.org>
Forwarded: https://github.com/nodejs/node/issues/60984
Last-Update: 2025-12-06

--- a/tools/v8_gypfiles/v8.gyp
+++ b/tools/v8_gypfiles/v8.gyp
@@ -2348,16 +2348,17 @@
     },  # highway
     {
       'target_name': 'simdutf',
-      'type': 'static_library',
+      'type': 'shared_library',
       'toolsets': ['host', 'target'],
+      'link_settings': {
+        'libraries': ['-lsimdutf', ],
+      },
       'direct_dependent_settings': {
         'include_dirs': [
-          '<(V8_ROOT)/third_party/simdutf',
         ],
       },
-      'include_dirs': ['.'],
+      'include_dirs': ['/usr/include'],
       'sources': [
-        '<(V8_ROOT)/third_party/simdutf/simdutf.cpp',
       ],
     },  # simdutf
   ],
--- a/deps/v8/src/objects/string.h
+++ b/deps/v8/src/objects/string.h
@@ -21,7 +21,7 @@
 #include "src/objects/tagged.h"
 #include "src/sandbox/external-pointer.h"
 #include "src/strings/unicode-decoder.h"
-#include "third_party/simdutf/simdutf.h"
+#include <simdutf.h>
 
 // Has to be the last include (doesn't have include guards):
 #include "src/objects/object-macros.h"
--- a/deps/v8/src/builtins/builtins-typed-array.cc
+++ b/deps/v8/src/builtins/builtins-typed-array.cc
@@ -12,7 +12,7 @@
 #include "src/objects/js-array-buffer-inl.h"
 #include "src/objects/objects-inl.h"
 #include "src/objects/simd.h"
-#include "third_party/simdutf/simdutf.h"
+#include <simdutf.h>
 
 namespace v8 {
 namespace internal {