Windows setup
make dev runs on Windows natively through Git Bash, once a few toolchain quirks are handled. After setup, the same make targets work as on macOS. Start with development setup if you haven’t installed the shared prerequisites yet.
-
Install the required tools via Chocolatey, from an elevated PowerShell:
Terminal window choco install -y git make rustup.install nodejs-lts cmake llvm `visualstudio2022buildtools visualstudio2022-workload-vctools `bats-coreThis installs GNU Make 4.4, not GnuWin32 make 3.81, which mishandles
$(VAR)expansion and\line continuations in recipes. -
Pin the MSVC linker. Create
.cargo/config.tomlin the repo root (gitignored) pointing at the MSVClink.exefor the version VS Build Tools installed. Without this, cargo on Git Bash finds Cygwin’slinkbefore MSVC’s, and the build fails withLNK1146,LNK1170, orLNK1206errors. -
Source the MSVC environment before cargo runs. Generate a variable snapshot once from
vcvars64.bat, save it as a bash-sourceable script, and source it from~/.bashrc, with the MSVC bin path ahead of/usr/binonPATHso cargo’s child processes findcl.exeanddumpbin.exethere first. -
Run from an interactive Git Bash session, not over SSH and not from
cmd.exeor PowerShell:Terminal window cd ~/Projects/speedwavemake setup-devmake devOver SSH,
make setup-devis known to skip anode_modules/.bin/symlink step, which later breaksnpx ng serve.
See testing once you’re building, to run the Windows-side test targets.