From: Matan Breizman Date: Sun, 2 Mar 2025 08:42:45 +0000 (+0000) Subject: cmake/modules/BuildISAL.cmake: set no-integrated-as on clang only X-Git-Tag: v20.0.0~8^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F62073%2Fhead;p=ceph.git cmake/modules/BuildISAL.cmake: set no-integrated-as on clang only this option is only relevant to clang, gcc will fail with: ``` CMake Error at ceph/build/src/erasure-code/isa/isal_ext-prefix/src/isal_ext-stamp/isal_ext-configure-Debug-impl.cmake:19 (message): Command failed (77): 'env' 'CC=/usr/bin/gcc-11' './configure' '--prefix=ceph/build/src/isa-l/install' '--with-pic' '--enable-static' '--disable-shared' 'CFLAGS=-no-integrated-as' ``` Signed-off-by: Matan Breizman --- diff --git a/cmake/modules/BuildISAL.cmake b/cmake/modules/BuildISAL.cmake index 16e2030de1ad..fa1476cabf89 100644 --- a/cmake/modules/BuildISAL.cmake +++ b/cmake/modules/BuildISAL.cmake @@ -17,7 +17,7 @@ function(build_isal) # because it messes with the internal install paths of arrow's bundled deps set(NO_DESTDIR_COMMAND ${CMAKE_COMMAND} -E env --unset=DESTDIR) - if(HAVE_ARMV8_SIMD) + if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND HAVE_ARMV8_SIMD) list(APPEND configure_cmd CFLAGS=-no-integrated-as) endif()