]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src: Move the decision to build the ISA plugin to the top level make file 67894/head
authorAlex Ainscow <aainscow@uk.ibm.com>
Wed, 18 Mar 2026 14:51:57 +0000 (14:51 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Thu, 19 Mar 2026 13:14:25 +0000 (13:14 +0000)
Previously, the first time you build ceph, common did not see the correct
value of WITH_EC_ISA_PLUGIN.  The consequence is that the global.yaml gets
build with osd_erasure_code_plugins not including isa.  This is not great
given its our default plugin.

We considered simply removing this parameter from make entirely, but this
may require more discussion about supporting old hardware.

So the slightly ugly fix is to move this erasure-code specific declartion
to the top-level.

Fixes: https://tracker.ceph.com/issues/75537
Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
(cherry picked from commit cecce28f16b0867ea8578a8f0c1478e24a40e525)

src/CMakeLists.txt
src/erasure-code/CMakeLists.txt

index 02d81d981a0d71d5f9e42a79911b020917f637d1..dc272546b9376edf5bc4a9acecdb1035e8341f03 100644 (file)
@@ -233,6 +233,12 @@ if(HAVE_INTEL)
   endif()
 endif()
 
+# Set WITH_EC_ISA_PLUGIN early so it's available when processing common/options
+# This must be set before add_subdirectory(common) is called
+if(HAVE_NASM_X64_AVX2 OR HAVE_ARMV8_SIMD)
+  set(WITH_EC_ISA_PLUGIN TRUE CACHE BOOL "")
+endif()
+
 # require c++20
 set(CMAKE_CXX_STANDARD 20)
 set(CMAKE_CXX_EXTENSIONS OFF)
index 18291f64b5cc9a9a26bb25364e3c9333c210e36a..3b635c77e74e117c503508be914c0534451da14e 100644 (file)
@@ -22,10 +22,6 @@ add_subdirectory(lrc)
 add_subdirectory(shec)
 add_subdirectory(clay)
 
-if(HAVE_NASM_X64_AVX2 OR HAVE_ARMV8_SIMD)
-  set(WITH_EC_ISA_PLUGIN TRUE CACHE BOOL "")
-endif()
-
 if(WITH_EC_ISA_PLUGIN)
   add_subdirectory(isa)
   set(EC_ISA_LIB ec_isa)