Skip to content

Commit bc744bd

Browse files
committed
fix(test): enable ffi tests on macos
1 parent 40b7444 commit bc744bd

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
@@ -279,8 +279,10 @@ fn ffi_test() {
279279

280280
#[cfg(windows)]
281281
let dll_path = "../target/debug/ffi_lib.dll";
282-
#[cfg(unix)]
282+
#[cfg(all(unix, not(target_os = "macos")))]
283283
let dll_path = "../target/debug/libffi_lib.so";
284+
#[cfg(target_os = "macos")]
285+
let dll_path = "../target/debug/libffi_lib.dylib";
284286
let lib_path = Path::new(dll_path);
285287

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

0 commit comments

Comments
 (0)