Skip to content

Commit 90f08ab

Browse files
authored
Merge pull request #799 from magistau/macos-ffi
fix(test): enable ffi tests on macos
2 parents 8c8deff + 5c2e1a6 commit 90f08ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests_ffi/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,10 @@ fn ffi_test() {
234234

235235
#[cfg(windows)]
236236
let dll_path = "../target/debug/ffi_lib.dll";
237-
#[cfg(unix)]
237+
#[cfg(all(unix, not(target_os = "macos")))]
238238
let dll_path = "../target/debug/libffi_lib.so";
239+
#[cfg(target_os = "macos")]
240+
let dll_path = "../target/debug/libffi_lib.dylib";
239241
let lib_path = Path::new(dll_path);
240242

241243
let mut uiua = Uiua::with_native_sys().with_args(vec![lib_path.to_string_lossy().into_owned()]);

0 commit comments

Comments
 (0)