Skip to content

Commit

Permalink
fix: other targets for rustler_precompiled
Browse files Browse the repository at this point in the history
  • Loading branch information
feng19 committed Oct 16, 2024
1 parent ff06bfa commit 5158f2d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build precompiled NIFs
on:
push:
branches:
- main
- master
tags:
- '*'

Expand Down
27 changes: 24 additions & 3 deletions native/captcha_nif/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
[target.'cfg(target_os = "macos")']
[target.x86_64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
"-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

0 comments on commit 5158f2d

Please sign in to comment.