BlueGit

ict rusty-teams

Files

rusty-teams / .cargo / config.toml

config.toml

config.toml 1.1 KiB Download Raw
1# libwebrtc's prebuilt Windows lib is built with /MT; a /MD Rust build fails to link (RuntimeLibrary mismatch).
2[target.x86_64-pc-windows-msvc]
3rustflags = ["-C", "target-feature=+crt-static"]
4
5[target.aarch64-pc-windows-msvc]
6rustflags = ["-C", "target-feature=+crt-static"]
7
8[target.x86_64-unknown-linux-gnu]
9linker = "clang"
10rustflags = ["-C", "link-arg=-fuse-ld=mold"]
11
12# macOS 14 is the minimum: screen and window sharing use ScreenCaptureKit's
13# SCContentSharingPicker (macOS 14+). Ignored by other targets; an exported
14# MACOSX_DEPLOYMENT_TARGET still wins. scripts/build-macos.sh exports the same
15# default for release builds: keep both in sync.
16[env]
17MACOSX_DEPLOYMENT_TARGET = "14.0"
18
19# libwebrtc's ObjC categories (NSString+StdString, RTCVideoCodecInfo, ...) live in unlinked
20# objects of the prebuilt static lib; without -ObjC the app aborts in a C++ static initializer
21# (RTCH264ProfileLevelId.mm) before main. webrtc-sys already passes -ObjC, but a dependency's
22# link flags never reach the final binary.
23[target.aarch64-apple-darwin]
24rustflags = ["-C", "link-arg=-ObjC"]