Skip to content

Commit

Permalink
Support macOS in our cli build (#1476)
Browse files Browse the repository at this point in the history
Errors are unrelated. Note that this doesn't make it work on macOS yet,
seems a problem with the shared library path, it cannot find
@rpath/libjulia-internal.dylib.
  • Loading branch information
evetion authored May 16, 2024
1 parent 80d226a commit f1d028c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ fn main() -> ExitCode {
let shared_lib_path = match OS {
"windows" => exe_dir.join("bin/libribasim.dll"),
"linux" => exe_dir.join("lib/libribasim.so"),
_ => unimplemented!(),
"macos" => exe_dir.join("lib/libribasim.dylib"),
_ => unimplemented!("Your OS is not supported yet."),
};
unsafe {
// Load the library
Expand Down

0 comments on commit f1d028c

Please sign in to comment.