We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fc98e19 + cc888c4 commit c85ec3dCopy full SHA for c85ec3d
libsql-ffi/build.rs
@@ -470,6 +470,18 @@ fn build_multiple_ciphers(out_path: &Path) -> PathBuf {
470
.define("CMAKE_POSITION_INDEPENDENT_CODE", "ON")
471
.profile("Release");
472
473
+ if let Ok(cc) = env::var("CMAKE_C_COMPILER") {
474
+ let mut build = cc::Build::new();
475
+ build.compiler(cc);
476
+ config.init_c_cfg(build);
477
+ }
478
+
479
+ if let Ok(cxx) = env::var("CMAKE_CXX_COMPILER") {
480
481
+ build.compiler(cxx);
482
+ config.init_cxx_cfg(build);
483
484
485
if cfg!(feature = "wasmtime-bindings") {
486
config.define("LIBSQL_ENABLE_WASM_RUNTIME", "1");
487
}
0 commit comments