diff --git a/native/jaqex/.cargo/config b/native/jaqex/.cargo/config new file mode 100644 index 0000000..0cd8445 --- /dev/null +++ b/native/jaqex/.cargo/config @@ -0,0 +1,26 @@ +[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", +] + +# See https://github.com/rust-lang/rust/issues/59302 +[target.x86_64-unknown-linux-musl] +rustflags = [ + "-C", "target-feature=-crt-static" +] + +# See https://github.com/rust-lang/rust/issues/59302 +[target.aarch64-unknown-linux-musl] +rustflags = [ + "-C", "target-feature=-crt-static" +] + +[profile.release] +lto = true