Skip to content

Commit f958b8d

Browse files
authored
Merge pull request #46 from jerel/platform-fix
Make lib extension dynamic in integration test
2 parents 616ca54 + b19fc9c commit f958b8d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

membrane/tests/integration_tests.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,13 @@ import '../locations/locations.dart' show GDPR, Location;
180180

181181
build_lib(&path.to_path_buf(), &mut vec![]);
182182

183-
Membrane::new_from_cdylib(&path.join("libexample.so"))
183+
let lib = if cfg!(target_os = "macos") {
184+
"libexample.dylib"
185+
} else {
186+
"libexample.so"
187+
};
188+
189+
Membrane::new_from_cdylib(&path.join(lib))
184190
.timeout(200)
185191
.package_destination_dir(path)
186192
.using_lib("libexample")

0 commit comments

Comments
 (0)