mdbx-cmake: minor fix detecting Elbrus/LCC.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2021-12-09 15:49:44 +03:00
parent 0265c847b8
commit 3e3560753b

View File

@ -178,7 +178,7 @@ if(NOT DEFINED CMAKE_TARGET_BITNESS)
endif()
endif()
if(CMAKE_COMPILER_IS_ELBRUSC OR CMAKE_SYSTEM_PROCESSOR MATCHES "e2k.*|E2K.*|elbrus.*|ELBRUS.*")
if(CMAKE_COMPILER_IS_ELBRUSC OR CMAKE_COMPILER_IS_ELBRUSCXX OR CMAKE_SYSTEM_PROCESSOR MATCHES "e2k.*|E2K.*|elbrus.*|ELBRUS.*")
set(E2K TRUE)
set(CMAKE_SYSTEM_ARCH "Elbrus")
elseif((MSVC64 OR MINGW64) AND CMAKE_TARGET_BITNESS EQUAL 64)
@ -271,7 +271,7 @@ if(CMAKE_CXX_COMPILER_LOADED)
endif()
# Check for LTO support by GCC
if(CMAKE_COMPILER_IS_GNU${CMAKE_PRIMARY_LANG})
if(CMAKE_COMPILER_IS_GNU${CMAKE_PRIMARY_LANG} AND NOT CMAKE_COMPILER_IS_ELBRUSC AND NOT CMAKE_COMPILER_IS_ELBRUSCXX)
unset(gcc_collect)
unset(gcc_lto_wrapper)