mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-01-04 12:48:12 -06:00
Linux: don't use SSE/AES switched of gcc if the architecture is not x86 or x64 (for example ARM).
This commit is contained in:
@@ -163,6 +163,7 @@ ifeq "$(shell uname -s)" "Linux"
|
||||
PLATFORM := Linux
|
||||
C_CXX_FLAGS += -DTC_UNIX -DTC_LINUX
|
||||
|
||||
ifneq "$(CPU_ARCH)" "unknown"
|
||||
CFLAGS += -msse2
|
||||
CXXFLAGS += -msse2
|
||||
|
||||
@@ -182,6 +183,7 @@ ifeq "$(shell uname -s)" "Linux"
|
||||
CXXFLAGS += -mssse3 -msse4.1
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq "$(TC_BUILD_CONFIG)" "Release"
|
||||
C_CXX_FLAGS += -fdata-sections -ffunction-sections
|
||||
|
||||
Reference in New Issue
Block a user