mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Enable Fat runtime on x86 by default to help migration from hyperscan
This commit is contained in:
parent
eca4049ce4
commit
f68a1e526c
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user