Enable Fat runtime on x86 by default to help migration from hyperscan

This commit is contained in:
Konstantinos Margaritis 2024-01-10 18:25:31 +02:00
parent eca4049ce4
commit f68a1e526c
2 changed files with 10 additions and 2 deletions

View File

@ -23,7 +23,6 @@ INCLUDE (CheckLibraryExists)
INCLUDE (CheckSymbolExists)
include (CMakeDependentOption)
include (GNUInstallDirs)
include (${CMAKE_MODULE_PATH}/platform.cmake)
include (${CMAKE_MODULE_PATH}/boost.cmake)
include (${CMAKE_MODULE_PATH}/ragel.cmake)
@ -123,6 +122,10 @@ if (RELEASE_BUILD)
add_definitions(-DNDEBUG)
endif()
# Architecture detection
include (${CMAKE_MODULE_PATH}/platform.cmake)
# Detect OS and if Fat Runtime is available
include (${CMAKE_MODULE_PATH}/osdetection.cmake)

View File

@ -6,7 +6,12 @@ if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
set(FREEBSD true)
endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
if (ARCH_IA32 OR ARCH_X86_64)
option(FAT_RUNTIME "Build a library that supports multiple microarchitectures" ON)
else()
option(FAT_RUNTIME "Build a library that supports multiple microarchitectures" OFF)
endif()
if (FAT_RUNTIME)
message("Checking Fat Runtime Requirements...")
if (NOT LINUX)