Skip to content

Commit d098875

Browse files
authored
Merge branch 'tursodatabase:main' into main
2 parents 5bcb9f2 + 1e0ce80 commit d098875

17 files changed

Lines changed: 595 additions & 62 deletions

File tree

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ exclude = [
2525
]
2626

2727
[workspace.package]
28-
version = "0.9.2"
28+
version = "0.9.4"
2929
authors = ["the libSQL authors"]
3030
edition = "2021"
3131
license = "MIT"
3232
repository = "https://github.com/tursodatabase/libsql"
3333

3434
[workspace.dependencies]
35-
libsql-ffi = { path = "libsql-ffi", version = "0.9.2" }
36-
libsql-sys = { path = "libsql-sys", version = "0.9.2", default-features = false }
37-
libsql-hrana = { path = "libsql-hrana", version = "0.9.2" }
38-
libsql_replication = { path = "libsql-replication", version = "0.9.2" }
39-
rusqlite = { package = "libsql-rusqlite", path = "vendored/rusqlite", version = "0.9.2", default-features = false, features = [
35+
libsql-ffi = { path = "libsql-ffi", version = "0.9.4" }
36+
libsql-sys = { path = "libsql-sys", version = "0.9.4", default-features = false }
37+
libsql-hrana = { path = "libsql-hrana", version = "0.9.4" }
38+
libsql_replication = { path = "libsql-replication", version = "0.9.4" }
39+
rusqlite = { package = "libsql-rusqlite", path = "vendored/rusqlite", version = "0.9.4", default-features = false, features = [
4040
"libsql-experimental",
4141
"column_decltype",
4242
"load_extension",

libsql-ffi/build.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,22 +76,20 @@ fn copy_dir_all(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> io::Result<()>
7676
/// propagate into OUT_DIR. If not present, when trying to rewrite a file, a `Permission denied`
7777
/// error will occur.
7878
fn copy_with_cp(from: impl AsRef<Path>, to: impl AsRef<Path>) -> io::Result<()> {
79-
let status = Command::new("cp")
79+
match Command::new("cp")
8080
.arg("--no-preserve=mode,ownership")
8181
.arg("-R")
8282
.arg(from.as_ref().to_str().unwrap())
8383
.arg(to.as_ref().to_str().unwrap())
84-
.status()?;
85-
86-
if status.success() {
87-
return Ok(());
84+
.status()
85+
{
86+
Ok(status) if status.success() => Ok(()),
87+
_ => match fs::copy(from.as_ref(), to.as_ref()) {
88+
Err(err) if err.kind() == io::ErrorKind::InvalidInput => copy_dir_all(from, to),
89+
Ok(_) => Ok(()),
90+
Err(err) => Err(err),
91+
},
8892
}
89-
90-
return match fs::copy(from.as_ref(), to.as_ref()) {
91-
Err(err) if err.kind() == io::ErrorKind::InvalidInput => copy_dir_all(from, to),
92-
Ok(_) => Ok(()),
93-
Err(err) => Err(err),
94-
};
9593
}
9694

9795
fn make_amalgamation() {
@@ -486,6 +484,8 @@ fn build_multiple_ciphers(target: &str, out_path: &Path) {
486484
"x86_64"
487485
} else if cc.contains("aarch64") {
488486
"arm64"
487+
} else if cc.contains("arm") {
488+
"arm"
489489
} else {
490490
panic!("Unsupported cross target {}", cc)
491491
};

libsql-ffi/bundled/SQLite3MultipleCiphers/CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux"
279279
# Do not set `-maes -msee4.2` when we are on arm which doesn't support
280280
# this instruction set.
281281
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64"
282-
OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
282+
OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64"
283+
OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm")
283284
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
284285
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
285286
else()
@@ -298,7 +299,9 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux"
298299
set(SHARED_LIB_EXPORT_DEFINITION "__attribute__((visibility(\"default\")))")
299300
else()
300301
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT (
301-
CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64"
302+
CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64"
303+
OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64"
304+
OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm"
302305
))
303306
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.2 -maes")
304307
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.2 -maes")
@@ -307,7 +310,9 @@ else()
307310
endif()
308311

309312
if (CMAKE_C_COMPILER_ID STREQUAL "Clang" AND NOT (
310-
CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64"
313+
CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64"
314+
OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64"
315+
OR CMAKE_SYSTEM_PROCESSOR STREQUAL "arm"
311316
))
312317
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse4.2 -maes -Wno-error=incompatible-function-pointer-types")
313318
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.2 -maes")

0 commit comments

Comments
 (0)