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
AARCH6464-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

Additional values that are aliases for the above:

ValueDescription
ARM64Alias for AARCH64
amd64Alias for x86_64
i386Alias for x86
x32Alias for x86.
x64Alias for x86_64.

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