You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In mod platform, this is using #[cfg(target_os = "...)] to select the appropriate probe implementation.
However, AIUI compiler plugins are compiled for the host platform, since they have to be loaded in rustc, so this code will see target_os of the host. But this may be different than the target platform that you're generating code for, set by cargo build --target ....
So I suspect this is incorrect for cross-compilation. It probably should use some runtime condition to detect the target and select the probe implementation.
The text was updated successfully, but these errors were encountered:
In
mod platform
, this is using#[cfg(target_os = "...)]
to select the appropriate probe implementation.However, AIUI compiler plugins are compiled for the host platform, since they have to be loaded in
rustc
, so this code will seetarget_os
of the host. But this may be different than the target platform that you're generating code for, set bycargo build --target ...
.So I suspect this is incorrect for cross-compilation. It probably should use some runtime condition to detect the target and select the probe implementation.
The text was updated successfully, but these errors were encountered: