diff options
| author | David Lönnhager <david.l@mullvad.net> | 2024-11-19 08:52:41 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-11-19 08:52:41 +0100 |
| commit | 1a2607c87d9bcf064e9ad45f5dfd46ce9fbd39c4 (patch) | |
| tree | be44dc3ecfa178e813caacef03543dccdabc843f /BuildInstructions.md | |
| parent | 690d3438c7ebb40e001b7da5b78ea101dc9779df (diff) | |
| parent | 78155478f52586d5768c4d1115e03a3f3020b5c1 (diff) | |
| download | mullvadvpn-1a2607c87d9bcf064e9ad45f5dfd46ce9fbd39c4.tar.xz mullvadvpn-1a2607c87d9bcf064e9ad45f5dfd46ce9fbd39c4.zip | |
Merge branch 'build-on-win-arm64'
Diffstat (limited to 'BuildInstructions.md')
| -rw-r--r-- | BuildInstructions.md | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/BuildInstructions.md b/BuildInstructions.md index 560ce9ce90..48da8cdfbf 100644 --- a/BuildInstructions.md +++ b/BuildInstructions.md @@ -95,10 +95,13 @@ The host has to have the following installed: - `msbuild.exe` available in `%PATH%`. If you installed Visual Studio Community edition, the binary can be found under: + ``` - C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64 + C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\<arch> ``` + Where `<arch>` refers to the host architecture, either `amd64` or `arm64`. + - `bash` installed as well as a few base unix utilities, including `sed` and `tail`. You are recommended to use [Git for Windows]. @@ -125,6 +128,30 @@ for ARM64 on x64. This requires: rustup target add aarch64-pc-windows-msvc ``` +### Compiling *on* Windows Arm + +In addition to the above requirements: + +- `x86_64-pc-windows-msvc` is required to build `talpid-openvpn-plugin`: + + ```bash + rustup target add x86_64-pc-windows-msvc + ``` + +- `clang` is required (can be found in the Visual Studio installer) in `PATH`. + + `INCLUDE` also needs to include the correct headers for clang. This can be found by running + `vcvarsall.bat arm64` and typing `set INCLUDE`. + +- `grpc-tools` currently doesn't include ARM builds. The x64 binaries must be installed to build + the Electron app: + + ``` + pushd gui + npm install --target_arch=x64 grpc-tools + popd + ``` + ## macOS The host has to have the following installed: |
