From f1d028cd999f98216ce241c9ff19ed759264d03f Mon Sep 17 00:00:00 2001 From: Maarten Pronk <8655030+evetion@users.noreply.github.com> Date: Thu, 16 May 2024 15:17:36 +0200 Subject: [PATCH] Support macOS in our cli build (#1476) 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. --- build/cli/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/cli/src/main.rs b/build/cli/src/main.rs index 3aa394c3f..1f71afa9a 100644 --- a/build/cli/src/main.rs +++ b/build/cli/src/main.rs @@ -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