Skip to main content

architecture

Specifies the system architecture to be targeted by the configuration.

architecture ("value")

Parameters

value is one of:

ValueDescriptionNotes
universalUniversal binaries supported by iOS and macOS
x86x86 Architecture
x86_64x86_64 Architecture
ARM32-bit ARM Architecture
ARM6464-bit ARM Architecture
RISCV6464-bit RISCV Architecture
loongarch6464-bit LoongArch Architecture
ppc32-bit PowerPC Architecture
ppc6464-bit PowerPC Architecture
wasm3232-bit WASM Architecture
wasm6464-bit WASM Architecture
e2kElbrus-2000 Architecture
mips64el64-bit MIPS (Little Endian) Architecture
armv5ARMv5 ArchitectureOnly supported in VSAndroid projects
armv7ARMv7 ArchitectureOnly supported in VSAndroid projects
aarch6464-bit ARM ArchitectureOnly supported in VSAndroid projects
mips32-bit MIPS ArchitectureOnly supported in VSAndroid projects
mips6464-bit MIPS ArchitectureOnly supported in VSAndroid projects

Additional values that are aliases for the above:

ValueDescription
i386Alias for x86
amd64Alias for x86_64
x32Alias for x86. There is intent to deprecate this
x64Alias for x86_64. There is intent to deprecate this

Applies To

Project configurations.

Availability

Premake 5.0.0-alpha1 or later.

Examples

Set up 32- and 64-bit Windows builds.

workspace "MyWorkspace"
configurations { "Debug32", "Release32", "Debug64", "Release64" }

filter "configurations:*32"
architecture "x86"

filter "configurations:*64"
architecture "x86_64"

See Also