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

Re-enable TILEDB_CCACHE support. #5342

Merged
merged 3 commits into from
Oct 10, 2024
Merged

Re-enable TILEDB_CCACHE support. #5342

merged 3 commits into from
Oct 10, 2024

Conversation

teo-tsirpanis
Copy link
Member

@teo-tsirpanis teo-tsirpanis commented Oct 9, 2024

SC-57386

Fixes #5341 and simplifies FindCcache.cmake. Validated locally.

image


TYPE: BUILD
DESC: The TILEDB_CCACHE option was fixed to have effect, after being accidentally disabled in version 2.26.0.

CMake recommends against setting them manually.
# without this compiler messages in `make` backend would be uncolored
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=auto")
endif()
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_FOUND})
Copy link
Member

Choose a reason for hiding this comment

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

Copy link

Choose a reason for hiding this comment

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

I don't know anything about Windows and how building works there, but https://cmake.org/cmake/help/latest/prop_gbl/RULE_LAUNCH_COMPILE.html makes it clear that RULE_LAUNCH_COMPILE is internal.

And the commit message of llvm/llvm-project@0fad18c seems to indicate CMake 3.4 should be enough, the commit was reverted in llvm/llvm-project@fff762d because the build bots needed to be updated first.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's likely setting these properties caused compile errors. They used to be applied only on the superbuild so they were not actually being used before.

Copy link
Collaborator

@dudoslav dudoslav left a comment

Choose a reason for hiding this comment

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

To be honest I always thought that CCACHE and SCCACHE should not be configured outside of CMake, something like just setting -DCMAKE_C_COMPILER_LAUNCHER. But these changes seem ok to me.

@teo-tsirpanis teo-tsirpanis merged commit 16c3aa2 into dev Oct 10, 2024
64 checks passed
@teo-tsirpanis teo-tsirpanis deleted the teo/ccache branch October 10, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CMake: -DTILEDB_CCACHE=ON has no effect
4 participants