-
Notifications
You must be signed in to change notification settings - Fork 185
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
Conversation
1e14deb
to
4e4c24b
Compare
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}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
SC-57386
Fixes #5341 and simplifies
FindCcache.cmake
. Validated locally.TYPE: BUILD
DESC: The
TILEDB_CCACHE
option was fixed to have effect, after being accidentally disabled in version 2.26.0.