mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-10 12:09:31 +00:00
The #[cfg(unix)] and #[cfg(windows)] checks in build.rs are testing properties of the build system, not the target system, which is inappropriate for cross compilation scenarios. This will matter when cross compiling from Linux for Windows, as an example. Use the appropriate Cargo environment variables to test target properties instead: https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts BUG=None TEST=cargo build TEST=tools/run_tests --target=host --build-target=mingw64 --build-only Change-Id: If1ac479ae519fe69168cead68b9ee44bac56f851 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3840955 Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Tested-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Dennis Kempin <denniskempin@google.com> |
||
---|---|---|
.. | ||
examples | ||
protocol | ||
src | ||
build.rs | ||
Cargo.toml |