Skip to content

Commit b599558

Browse files
committed
Bug 1964446 - Fix sqlite-vec build on Linux+musl.r=asuth,mak
see also: https://phabricator.services.mozilla.com/D247229#8557917 asg017/sqlite-vec#219 Differential Revision: https://phabricator.services.mozilla.com/D248399 UltraBlame original commit: 98761001f9bde7c92c1a50a78328ac3993929563
1 parent bf8532d commit b599558

2 files changed

Lines changed: 54 additions & 51 deletions

File tree

third_party/sqlite3/ext/sqlite-vec/patches/bug1962061.patch renamed to third_party/sqlite3/ext/sqlite-vec/patches/bug1964446.patch

Lines changed: 54 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
diff
2+
-
3+
-
4+
git
5+
a
6+
/
7+
sqlite
8+
-
9+
vec
10+
.
11+
c
12+
b
13+
/
14+
sqlite
15+
-
16+
vec
17+
.
18+
c
19+
index
20+
86378ba
21+
.
22+
.
23+
e8e38c9
24+
100644
125
-
226
-
327
-
@@ -19,51 +43,63 @@ vec
1943
.
2044
c
2145
-
22-
65
23-
6
46+
61
47+
18
2448
+
25-
65
26-
7
49+
61
50+
6
51+
SQLITE_EXTENSION_INIT3
52+
#
53+
define
54+
LONGDOUBLE_TYPE
55+
long
56+
double
57+
#
58+
endif
59+
-
60+
#
61+
ifndef
62+
_WIN32
63+
-
2764
#
2865
ifndef
2966
__EMSCRIPTEN__
67+
-
3068
#
3169
ifndef
3270
__COSMOPOLITAN__
71+
-
3372
#
3473
ifndef
3574
__wasi__
36-
+
37-
#
38-
ifndef
39-
__sun__
75+
-
4076
typedef
4177
u_int8_t
4278
uint8_t
4379
;
80+
-
4481
typedef
4582
u_int16_t
4683
uint16_t
4784
;
85+
-
4886
typedef
4987
u_int64_t
5088
uint64_t
5189
;
5290
-
53-
72
54-
6
55-
+
56-
73
57-
7
5891
#
5992
endif
93+
-
6094
#
6195
endif
96+
-
6297
#
6398
endif
64-
+
99+
-
65100
#
66101
endif
102+
-
67103
typedef
68104
int8_t
69105
i8
@@ -72,3 +108,7 @@ typedef
72108
uint8_t
73109
u8
74110
;
111+
typedef
112+
int16_t
113+
i16
114+
;

third_party/sqlite3/ext/sqlite-vec/sqlite-vec.c

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -227,43 +227,6 @@ long
227227
double
228228
#
229229
endif
230-
#
231-
ifndef
232-
_WIN32
233-
#
234-
ifndef
235-
__EMSCRIPTEN__
236-
#
237-
ifndef
238-
__COSMOPOLITAN__
239-
#
240-
ifndef
241-
__wasi__
242-
#
243-
ifndef
244-
__sun__
245-
typedef
246-
u_int8_t
247-
uint8_t
248-
;
249-
typedef
250-
u_int16_t
251-
uint16_t
252-
;
253-
typedef
254-
u_int64_t
255-
uint64_t
256-
;
257-
#
258-
endif
259-
#
260-
endif
261-
#
262-
endif
263-
#
264-
endif
265-
#
266-
endif
267230
typedef
268231
int8_t
269232
i8

0 commit comments

Comments
 (0)