]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
cmake: remove ifunc requirement from cmake build (#360)
authorTomer Lev <me@tomerlev.com>
Thu, 15 Jan 2026 17:57:31 +0000 (19:57 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Jan 2026 17:57:31 +0000 (19:57 +0200)
Removing ifunc requirement from osdetection.cmake

cmake/osdetection.cmake

index 96083baf42b50cd2a91cec8b9f8ff25f1e62dff3..5a8a5326365edaef2f8d31e53d18fe92b6c1f7c9 100644 (file)
@@ -41,11 +41,6 @@ if (FAT_RUNTIME)
         if (NOT (CMAKE_GENERATOR MATCHES "Unix Makefiles" OR
             (CMAKE_VERSION VERSION_GREATER "3.0" AND CMAKE_GENERATOR MATCHES "Ninja")))
             message (FATAL_ERROR "Building the fat runtime requires the Unix Makefiles generator, or Ninja with CMake v3.0 or higher")
-        else()
-            include (${CMAKE_MODULE_PATH}/attrib.cmake)
-            if (NOT HAS_C_ATTR_IFUNC)
-                message(FATAL_ERROR "Compiler does not support ifunc attribute, cannot build fat runtime")
-            endif()
         endif()
     endif()
     if (NOT RELEASE_BUILD)