Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hermetic shared build #32968

Merged
merged 1 commit into from Dec 21, 2021
Merged

Conversation

amosbird
Copy link
Collaborator

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Enable hermetic build for shared builds. This is mainly for developers.

Detailed description / Documentation draft:
.

@robot-clickhouse robot-clickhouse added the pr-build Pull request with build/testing/packaging improvement label Dec 20, 2021
@@ -14,9 +14,12 @@ set (TOOLCHAIN_PATH "${CMAKE_CURRENT_LIST_DIR}/../../contrib/sysroot/linux-x86_6

set (CMAKE_SYSROOT "${TOOLCHAIN_PATH}/x86_64-linux-gnu/libc")

set (CMAKE_C_FLAGS_INIT "${CMAKE_C_FLAGS} --gcc-toolchain=${TOOLCHAIN_PATH}")
Copy link
Collaborator Author

@amosbird amosbird Dec 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't make sense to have CMAKE_C_FLAGS prepended when initializing CMAKE_C_FLAGS. If CMAKE_C_FLAGS is defined beforehand, this statement is useless. So we either have set (CMAKE_C_FLAGS_INIT "--gcc-toolchain=${TOOLCHAIN_PATH}") or set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --gcc-toolchain=${TOOLCHAIN_PATH}") . I think the second one is better since we can provide more stuff via cmdline.

@robot-ch-test-poll3 robot-ch-test-poll3 added the submodule changed At least one submodule changed in this PR. label Dec 20, 2021
@alexey-milovidov alexey-milovidov self-assigned this Dec 21, 2021
@alexey-milovidov alexey-milovidov merged commit 7effb45 into ClickHouse:master Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-build Pull request with build/testing/packaging improvement submodule changed At least one submodule changed in this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants