Skip to content

Commit 2a6d779

Browse files
committed
Make: invalid C++17 Clang arg
1 parent f73d52a commit 2a6d779

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from pybind11.setup_helpers import Pybind11Extension
77

8+
sources = ["python/lib.cpp"]
89
compile_args = []
910
link_args = []
1011
macros_args = []
@@ -127,12 +128,14 @@ def get_bool_env_w_name(name: str, preference: bool) -> tuple:
127128
]
128129
)
129130

130-
print("macros_args", macros_args)
131+
if is_linux or is_macos:
132+
sources.append("sqlite/lib.cpp")
133+
link_args.append("-lsqlite3")
131134

132135
ext_modules = [
133136
Pybind11Extension(
134137
"usearch.compiled",
135-
["python/lib.cpp", "sqlite/lib.cpp", "stringzilla/c/lib.c"],
138+
sources,
136139
extra_compile_args=compile_args,
137140
extra_link_args=link_args,
138141
define_macros=macros_args,

sqlite/lib.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,3 +321,5 @@ extern "C" SZ_DYNAMIC int sqlite3_compiled_init( //
321321

322322
return SQLITE_OK;
323323
}
324+
325+
#include "../stringzilla/c/lib.c"

swift/Index+Sugar.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extension USearchIndex {
1212
public typealias Scalar = USearchScalar
1313

1414
/// Adds a labeled vector to the index.
15-
/// - Parameter key: Unique identifer for that object.
15+
/// - Parameter key: Unique identifier for that object.
1616
/// - Parameter vector: Single-precision vector.
1717
/// - Throws: If runs out of memory.
1818
public func add(key: USearchKey, vector: ArraySlice<Float32>) {
@@ -22,7 +22,7 @@ extension USearchIndex {
2222
}
2323

2424
/// Adds a labeled vector to the index.
25-
/// - Parameter key: Unique identifer for that object.
25+
/// - Parameter key: Unique identifier for that object.
2626
/// - Parameter vector: Single-precision vector.
2727
/// - Throws: If runs out of memory.
2828
public func add(key: USearchKey, vector: Array<Float32>) {
@@ -55,7 +55,7 @@ extension USearchIndex {
5555
}
5656

5757
/// Adds a labeled vector to the index.
58-
/// - Parameter key: Unique identifer for that object.
58+
/// - Parameter key: Unique identifier for that object.
5959
/// - Parameter vector: Double-precision vector.
6060
/// - Throws: If runs out of memory.
6161
public func add(key: Key, vector: ArraySlice<Float64>) {
@@ -65,7 +65,7 @@ extension USearchIndex {
6565
}
6666

6767
/// Adds a labeled vector to the index.
68-
/// - Parameter key: Unique identifer for that object.
68+
/// - Parameter key: Unique identifier for that object.
6969
/// - Parameter vector: Double-precision vector.
7070
/// - Throws: If runs out of memory.
7171
public func add(key: Key, vector: Array<Float64>) {
@@ -100,7 +100,7 @@ extension USearchIndex {
100100
#if arch(arm64)
101101

102102
/// Adds a labeled vector to the index.
103-
/// - Parameter key: Unique identifer for that object.
103+
/// - Parameter key: Unique identifier for that object.
104104
/// - Parameter vector: Half-precision vector.
105105
/// - Throws: If runs out of memory.
106106
@available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
@@ -111,7 +111,7 @@ extension USearchIndex {
111111
}
112112

113113
/// Adds a labeled vector to the index.
114-
/// - Parameter key: Unique identifer for that object.
114+
/// - Parameter key: Unique identifier for that object.
115115
/// - Parameter vector: Half-precision vector.
116116
/// - Throws: If runs out of memory.
117117
@available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)

0 commit comments

Comments
 (0)