MCOL-5819 disable lto for ColumnStore

This commit is contained in:
Sergei Golubchik 2024-11-15 10:45:12 +01:00
parent b79723ffe3
commit 74532f2355
2 changed files with 4 additions and 0 deletions
debian
storage/columnstore

3
debian/rules vendored
View file

@ -4,6 +4,9 @@
# https://wiki.debian.org/Hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# LTO is generally enabled. Only ColumnStore doesn't support it (MCOL-5819)
# and disables it in storage/columnstore/CMakeLists.txt
DPKG_EXPORT_BUILDFLAGS = 1
# Include all defaults, including buildflags.mk
include /usr/share/dpkg/default.mk

View file

@ -20,6 +20,7 @@ endmacro()
IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR
CMAKE_SYSTEM_PROCESSOR STREQUAL "amd64" OR
CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
MY_CHECK_AND_SET_COMPILER_FLAG("-fno-lto")
SET(PCRE_INCLUDES "${PCRE_INCLUDE_DIRS}")
add_subdirectory(columnstore)