diff options
| author | Jonathan <jonathan@mullvad.net> | 2022-06-29 16:50:11 +0200 |
|---|---|---|
| committer | Jonathan <jonathan@mullvad.net> | 2022-06-30 15:05:07 +0200 |
| commit | 30aa0b2b43030ce88f51c0f2d0906ab4e6e34c82 (patch) | |
| tree | 7f36da93b19651557eddfc34be3a83678135d4ba | |
| parent | 8bc09fec9be38cef5140a23d6b9492bcbbd60dc7 (diff) | |
| download | mullvadvpn-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.rs | 4 |
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), }; |
