From: Arnaud Giersch Date: Thu, 9 Feb 2023 13:28:39 +0000 (+0100) Subject: Little simplification. X-Git-Tag: v3.34~558 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d95dead9e2a98cde2eff02b127aea0097f47028a Little simplification. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 366f0e38f7..01a299eecc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,17 +179,16 @@ set(SIMGRID_DEP "-lm") ### Determine the assembly flavor that we need today set(HAVE_RAW_CONTEXTS 0) include(CMakeDetermineSystem) +foreach(arch i686 x86_64 arm64) + set(SIMGRID_PROCESSOR_${arch} 0) +endforeach() IF(CMAKE_SYSTEM_PROCESSOR MATCHES ".86|AMD64|amd64") IF(CMAKE_SIZEOF_VOID_P EQUAL 4) # 32 bits message(STATUS "System processor: i686 (${CMAKE_SYSTEM_PROCESSOR}, 32 bits)") set(SIMGRID_PROCESSOR_i686 1) - set(SIMGRID_PROCESSOR_x86_64 0) - set(SIMGRID_PROCESSOR_arm64 0) ELSE() message(STATUS "System processor: x86_64 (${CMAKE_SYSTEM_PROCESSOR}, 64 bits)") - set(SIMGRID_PROCESSOR_i686 0) set(SIMGRID_PROCESSOR_x86_64 1) - set(SIMGRID_PROCESSOR_arm64 0) ENDIF() if(CMAKE_SIZEOF_VOID_P EQUAL 4 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") message(STATUS "Disable fast raw contexts on x32 ABI.") @@ -198,14 +197,9 @@ IF(CMAKE_SYSTEM_PROCESSOR MATCHES ".86|AMD64|amd64") endif() ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") message(STATUS "System processor: arm64 (${CMAKE_SYSTEM_PROCESSOR}, 64 bits)") - set(SIMGRID_PROCESSOR_i686 0) - set(SIMGRID_PROCESSOR_x86_64 0) set(SIMGRID_PROCESSOR_arm64 1) ELSE() message(STATUS "System processor (${CMAKE_SYSTEM_PROCESSOR}) not explicitly accounted for") - set(SIMGRID_PROCESSOR_i686 0) - set(SIMGRID_PROCESSOR_x86_64 0) - set(SIMGRID_PROCESSOR_arm64 0) ENDIF() include(CheckFunctionExists)