Closed alexmoon closed 1 year ago
In a build script #[cfg(target_os=...)] refers to the host, not the target. Using the CARGO_CFG_TARGET_OS environment variable sets the link parameters properly.
#[cfg(target_os=...)]
CARGO_CFG_TARGET_OS
In a build script
#[cfg(target_os=...)]
refers to the host, not the target. Using theCARGO_CFG_TARGET_OS
environment variable sets the link parameters properly.