mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -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
|
PLATFORM := Linux
|
||||||
C_CXX_FLAGS += -DTC_UNIX -DTC_LINUX
|
C_CXX_FLAGS += -DTC_UNIX -DTC_LINUX
|
||||||
|
|
||||||
|
ifneq "$(CPU_ARCH)" "unknown"
|
||||||
CFLAGS += -msse2
|
CFLAGS += -msse2
|
||||||
CXXFLAGS += -msse2
|
CXXFLAGS += -msse2
|
||||||
|
|
||||||
@@ -182,6 +183,7 @@ ifeq "$(shell uname -s)" "Linux"
|
|||||||
CXXFLAGS += -mssse3 -msse4.1
|
CXXFLAGS += -mssse3 -msse4.1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq "$(TC_BUILD_CONFIG)" "Release"
|
ifeq "$(TC_BUILD_CONFIG)" "Release"
|
||||||
C_CXX_FLAGS += -fdata-sections -ffunction-sections
|
C_CXX_FLAGS += -fdata-sections -ffunction-sections
|
||||||
|
|||||||
Reference in New Issue
Block a user