mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
contrib/hyperscan: use hidden library
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
53a9778fb7
commit
f8f6ad1e9e
@ -217,23 +217,23 @@ set (SRCS
|
|||||||
"${LIBRARY_DIR}/src/util/ue2string.cpp"
|
"${LIBRARY_DIR}/src/util/ue2string.cpp"
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library (hyperscan ${SRCS})
|
add_library (_hyperscan ${SRCS})
|
||||||
|
|
||||||
target_compile_options (hyperscan
|
target_compile_options (_hyperscan
|
||||||
PRIVATE -g0 # Library has too much debug information
|
PRIVATE -g0 # Library has too much debug information
|
||||||
-mno-avx -mno-avx2 # The library is using dynamic dispatch and is confused if AVX is enabled globally
|
-mno-avx -mno-avx2 # The library is using dynamic dispatch and is confused if AVX is enabled globally
|
||||||
-march=corei7 -O2 -fno-strict-aliasing -fno-omit-frame-pointer -fvisibility=hidden # The options from original build system
|
-march=corei7 -O2 -fno-strict-aliasing -fno-omit-frame-pointer -fvisibility=hidden # The options from original build system
|
||||||
-fno-sanitize=undefined # Assume the library takes care of itself
|
-fno-sanitize=undefined # Assume the library takes care of itself
|
||||||
)
|
)
|
||||||
target_include_directories (hyperscan
|
target_include_directories (_hyperscan
|
||||||
PRIVATE
|
PRIVATE
|
||||||
common
|
common
|
||||||
"${LIBRARY_DIR}/include"
|
"${LIBRARY_DIR}/include"
|
||||||
)
|
)
|
||||||
target_include_directories (hyperscan SYSTEM PUBLIC "${LIBRARY_DIR}/src")
|
target_include_directories (_hyperscan SYSTEM PUBLIC "${LIBRARY_DIR}/src")
|
||||||
if (ARCH_AMD64)
|
if (ARCH_AMD64)
|
||||||
target_include_directories (hyperscan PRIVATE x86_64)
|
target_include_directories (_hyperscan PRIVATE x86_64)
|
||||||
endif ()
|
endif ()
|
||||||
target_link_libraries (hyperscan PRIVATE boost::headers_only)
|
target_link_libraries (_hyperscan PRIVATE boost::headers_only)
|
||||||
|
|
||||||
add_library (ch_contrib::hyperscan ALIAS hyperscan)
|
add_library (ch_contrib::hyperscan ALIAS _hyperscan)
|
||||||
|
Loading…
Reference in New Issue
Block a user