fix(build): add memset_shim for Windows MinGW and rpm for Linux ARM64
All checks were successful
Test / rust-clippy (pull_request) Successful in 14m26s
Test / rust-tests (pull_request) Successful in 16m24s
Test / frontend-tests (pull_request) Successful in 1m41s
Test / frontend-typecheck (pull_request) Successful in 1m53s
PR Review Automation / review (pull_request) Successful in 4m47s
Test / rust-fmt-check (pull_request) Successful in 13m16s
All checks were successful
Test / rust-clippy (pull_request) Successful in 14m26s
Test / rust-tests (pull_request) Successful in 16m24s
Test / frontend-tests (pull_request) Successful in 1m41s
Test / frontend-typecheck (pull_request) Successful in 1m53s
PR Review Automation / review (pull_request) Successful in 4m47s
Test / rust-fmt-check (pull_request) Successful in 13m16s
This commit is contained in:
parent
b5778306fc
commit
95b7dec759
13
src-tauri/src/memset_shim.rs
Normal file
13
src-tauri/src/memset_shim.rs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/// Windows MinGW memset_explicit shim
|
||||||
|
/// libsodium-sys-stable expects memset_explicit which isn't available in MinGW
|
||||||
|
/// This provides a compatible implementation
|
||||||
|
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
#[no_mangle]
|
||||||
|
pub extern "C" fn memset_explicit(dest: *mut u8, val: i32, n: usize) {
|
||||||
|
unsafe {
|
||||||
|
for i in 0..n {
|
||||||
|
*dest.add(i) = val as u8;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user