Skip to content

Commit

Permalink
Merge pull request ClickHouse#35774 from ClickHouse/ressurect_build_h…
Browse files Browse the repository at this point in the history
…ash_v2

One more try to resurrect build hash
  • Loading branch information
alesapin authored and Felixoid committed Apr 4, 2022
1 parent 8cd46fa commit f2e41bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ endif ()
# Add a section with the hash of the compiled machine code for integrity checks.
# Only for official builds, because adding a section can be time consuming (rewrite of several GB).
# And cross compiled binaries are not supported (since you cannot execute clickhouse hash-binary)
if (OBJCOPY_PATH AND CLICKHOUSE_OFFICIAL_BUILD AND (NOT CMAKE_TOOLCHAIN_FILE))
set (USE_BINARY_HASH 1)
if (OBJCOPY_PATH AND CLICKHOUSE_OFFICIAL_BUILD AND (NOT CMAKE_TOOLCHAIN_FILE OR CMAKE_TOOLCHAIN_FILE MATCHES "linux/toolchain-x86_64.cmake$"))
set (USE_BINARY_HASH 1 CACHE STRING "Calculate binary hash and store it in the separate section")
endif ()

# Allows to build stripped binary in a separate directory
Expand Down

0 comments on commit f2e41bc

Please sign in to comment.