mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
Update CMakeLists.txt
This commit is contained in:
parent
f11148a77c
commit
ab42691b77
@ -226,7 +226,7 @@ if (COMPILER_CLANG)
|
|||||||
# We cannot afford to use LTO when compiling unitests, and it's not enough
|
# We cannot afford to use LTO when compiling unitests, and it's not enough
|
||||||
# to only supply -fno-lto at the final linking stage. So we disable it
|
# to only supply -fno-lto at the final linking stage. So we disable it
|
||||||
# completely.
|
# completely.
|
||||||
if (NOT ENABLE_TESTS)
|
if (NOT ENABLE_TESTS AND NOT SANITIZE)
|
||||||
# Link time optimization
|
# Link time optimization
|
||||||
set (CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -flto=thin")
|
set (CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -flto=thin")
|
||||||
set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -flto=thin")
|
set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -flto=thin")
|
||||||
|
Loading…
Reference in New Issue
Block a user