Skip to main content

ENV_NATIVE_ARCH

Constant ENV_NATIVE_ARCH 

Source
pub const ENV_NATIVE_ARCH: &str = "PROCESSOR_ARCHITEW6432";
Expand description

Windows environment variable that carries the machine’s architecture when the running process is emulated.

std::env::consts::ARCH is baked in at compile time and only ever describes the binary. Windows sets this one under WOW64 and under ARM64 emulation, which is the only way a 32-bit build can tell that it is running on a 64-bit machine. scripts/install.ps1 reads the same variable to choose which asset to download.