summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJonathan <jonathan@mullvad.net>2022-06-29 16:50:11 +0200
committerJonathan <jonathan@mullvad.net>2022-06-30 15:05:07 +0200
commit30aa0b2b43030ce88f51c0f2d0906ab4e6e34c82 (patch)
tree7f36da93b19651557eddfc34be3a83678135d4ba
parent8bc09fec9be38cef5140a23d6b9492bcbbd60dc7 (diff)
downloadmullvadvpn-30aa0b2b43030ce88f51c0f2d0906ab4e6e34c82.tar.xz
mullvadvpn-30aa0b2b43030ce88f51c0f2d0906ab4e6e34c82.zip
Allow windows cross compilation to run clippy
Add the ability to run clippy on a cross-compilation of windows from linux. This makes `build` not panic in the same way, however `clippy` and `check` work.
-rw-r--r--talpid-core/build.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/talpid-core/build.rs b/talpid-core/build.rs
index 8c5c74911b..b46304d5a0 100644
--- a/talpid-core/build.rs
+++ b/talpid-core/build.rs
@@ -69,6 +69,10 @@ fn main() {
let link_type = match target_os.as_str() {
"android" => "",
"linux" | "macos" => "=static",
+ // We would like to avoid panicing on windows even if we can not link correctly
+ // because we would like to be able to run check and clippy.
+ // This does not allow for correct linking or building.
+ "windows" => "",
_ => panic!("Unsupported platform: {}", target_os),
};