mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 21:23:40 +01:00
Allow $(ARCH) to be defined during build (#471)
This can be useful when crossbuilding or building in a chroot where using uname -m would cause the wrong compiler options.
This commit is contained in:
parent
0d91dab5b9
commit
10c4a3e807
@ -132,7 +132,7 @@ export PLATFORM_UNSUPPORTED := 0
|
|||||||
export CPU_ARCH ?= unknown
|
export CPU_ARCH ?= unknown
|
||||||
export SIMD_SUPPORTED := 0
|
export SIMD_SUPPORTED := 0
|
||||||
|
|
||||||
ARCH = $(shell uname -m)
|
ARCH ?= $(shell uname -m)
|
||||||
|
|
||||||
ifneq (,$(filter i386 i486 i586 i686 x86,$(ARCH)))
|
ifneq (,$(filter i386 i486 i586 i686 x86,$(ARCH)))
|
||||||
CPU_ARCH = x86
|
CPU_ARCH = x86
|
||||||
|
Loading…
Reference in New Issue
Block a user