Closed william-vw closed 3 weeks ago
Could you try adding the following to .cargo/config.toml
(you'll need to create this in the top level of the worktree)?
[target.x86_64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
[target.aarch64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
When adding to the top-level Cargo.toml
:
error: failed to parse manifest at `/Users/wvw/git/nemo/Cargo.toml`
Caused by:
this virtual manifest specifies a `target` section, which is not allowed
Adding it to nemo-python
gives the warning (and the same error, eventually):
warning: /Users/wvw/git/nemo/nemo-python/Cargo.toml: unused manifest key: target.aarch64-apple-darwin.rustflags
warning: /Users/wvw/git/nemo/nemo-python/Cargo.toml: unused manifest key: target.x86_64-apple-darwin.rustflags
Adding it to rust-toolchain.toml
has no effect.
I am not well acquainted with rust so more guidance will be appreciated :-)
It doesn't go into any of the Cargo.toml
manifests, instead you'd need to create a new top-level directory .cargo
and put a a config.toml
inside.
Yes I was just trying that :-) That works!
Okay, i'll prepare a PR, then. :)
After checking out tag 0.6.0, installing the openssl dependency, and running
cargo build-r
, I am getting the error below. Note that thenmo
executable is being built undertarget/release
(which is what I was interested in :-). I just wanted to point it out. I am using a MacBook Pro with M1 Pro chip (Sonoma 14.6.1).