From a410d48f1a84dc9af78a2ff7171f1bf36534c785 Mon Sep 17 00:00:00 2001 From: accopeland Date: Mon, 4 Apr 2022 22:26:26 +0000 Subject: [PATCH] In CMakeLists.txt, report aarch64/graviton2 case of missing bmi2 and popcount --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1308d1f..28513bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,12 +87,16 @@ check_cxx_compiler_flag("-mpopcnt" USE_POPCNT) if(USE_POPCNT) message(STATUS "Using popcnt instructions (-mpopcnt compiler flag set)") set_target_properties(megahit_core_popcnt PROPERTIES COMPILE_FLAGS "-mpopcnt") +else() + message(STATUS "popcnt not found ") endif() check_cxx_compiler_flag("-mbmi2" USE_BMI2) if(USE_BMI2 AND USE_POPCNT) message(STATUS "Using bmi2 instructions (-mbmi2 compiler flag set)") set_target_properties(megahit_core PROPERTIES COMPILE_FLAGS "-mbmi2 -DUSE_BMI2 -mpopcnt") +else() + message(STATUS "bmi2 not found") endif() if (STATIC_BUILD)