From e9b65dbaba6573340e64ff35335fbf207b49d346 Mon Sep 17 00:00:00 2001 From: adiibanez Date: Wed, 26 Feb 2025 16:19:15 +0100 Subject: [PATCH 1/2] Use working ortex macos lib config --- native/explorer/.cargo/config.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/native/explorer/.cargo/config.toml b/native/explorer/.cargo/config.toml index ef2938f89..2aa6874e9 100644 --- a/native/explorer/.cargo/config.toml +++ b/native/explorer/.cargo/config.toml @@ -1,3 +1,12 @@ +# https://github.com/elixir-nx/ortex/blob/main/native/ortex/.cargo/config.toml +[target.'cfg(target_os = "macos")'] +rustflags = [ + "-C", "link-arg=-undefined", + "-C", "link-arg=dynamic_lookup", + "-C", "link-arg=-fapple-link-rtlib", + "-C", "link-args=-Wl,-rpath,@loader_path", +] + # See https://github.com/rust-lang/rust/issues/59302 [target.x86_64-unknown-linux-musl] rustflags = [ From ce1c4d4547e37490099eb6fe6429a0d18999e352 Mon Sep 17 00:00:00 2001 From: adiibanez Date: Wed, 26 Feb 2025 16:20:21 +0100 Subject: [PATCH 2/2] trigger ci --- native/explorer/.cargo/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/explorer/.cargo/config.toml b/native/explorer/.cargo/config.toml index 2aa6874e9..5466ea802 100644 --- a/native/explorer/.cargo/config.toml +++ b/native/explorer/.cargo/config.toml @@ -1,4 +1,4 @@ -# https://github.com/elixir-nx/ortex/blob/main/native/ortex/.cargo/config.toml +# Working config: https://github.com/elixir-nx/ortex/blob/main/native/ortex/.cargo/config.toml [target.'cfg(target_os = "macos")'] rustflags = [ "-C", "link-arg=-undefined",