Skip to content

Commit

Permalink
Try adding to config.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermanverschooten committed Nov 15, 2024
1 parent 2beac20 commit 986dc00
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions native/typst_nif/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ 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"
]

# 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 986dc00

Please sign in to comment.