We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e40c431 commit d09ed82Copy full SHA for d09ed82
1 file changed
libsql-ffi/build.rs
@@ -478,6 +478,10 @@ fn build_multiple_ciphers(target: &str, out_path: &Path) {
478
cmake_opts.push(&cmake_toolchain_opt);
479
writeln!(toolchain_file, "set(CMAKE_SYSTEM_NAME \"Linux\")").unwrap();
480
writeln!(toolchain_file, "set(CMAKE_SYSTEM_PROCESSOR \"arm64\")").unwrap();
481
+ } else if cc.contains("x86_64") && cc.contains("darwin") {
482
+ cmake_opts.push(&cmake_toolchain_opt);
483
+ writeln!(toolchain_file, "set(CMAKE_SYSTEM_NAME \"Darwin\")").unwrap();
484
+ writeln!(toolchain_file, "set(CMAKE_SYSTEM_PROCESSOR \"x86_64\")").unwrap();
485
}
486
487
if let Some(cc) = cross_cc {
0 commit comments