Skip to content

Commit

Permalink
Add libatomic as a link to the generated NIF (#544)
Browse files Browse the repository at this point in the history
This is needed in order to make the precompiled NIF work on ARM 32 bits
that is used in some Raspbery Pi machines (32 bits).

See: philss/rustler_precompiled#53
  • Loading branch information
Philip Sampaio authored Mar 13, 2023
1 parent 36b0c6e commit fe7cee9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions native/explorer/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ rustflags = [
"-C", "target-feature=-crt-static"
]

# Libatomic is needed for 32 bits ARM.
# See: https://github.com/philss/rustler_precompiled/issues/53
[target.arm-unknown-linux-gnueabihf]
rustflags = [
"-l", "dylib=atomic"
]

# Provides a small build size, but takes more time to build.
[profile.release]
lto = true

0 comments on commit fe7cee9

Please sign in to comment.