mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 11:58:41 +00:00
15 lines
739 B
TOML
15 lines
739 B
TOML
[target.x86_64-pc-windows-msvc]
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
[target.aarch64-pc-windows-msvc]
|
|
rustflags = ["-C", "target-feature=+crt-static"]
|
|
[target.'cfg(target_os = "linux")']
|
|
rustflags = ["-C", "link-args=-Wl,--warn-unresolved-symbols"]
|
|
[target.'cfg(target_os = "macos")']
|
|
rustflags = ["-C", "link-args=-all_load", "-C", "link-args=-weak_framework ScreenCaptureKit"]
|
|
# https://sourceware.org/bugzilla/show_bug.cgi?id=21032
|
|
# https://sourceware.org/bugzilla/show_bug.cgi?id=21031
|
|
# https://github.com/rust-lang/rust/issues/134820
|
|
# pthread_key_create() destructors and segfault after a DSO unloading
|
|
[target.'cfg(all(target_env = "gnu", not(target_os = "windows")))']
|
|
rustflags = ["-C", "link-args=-Wl,-z,nodelete"]
|