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

[CMake] DEBUG_FISSION is enabled for sccache clang builds #9912

Merged
merged 1 commit into from Feb 17, 2023

Conversation

@philn philn self-assigned this Feb 10, 2023
@philn philn added the CMake Bugzilla component for CMake build system changes label Feb 10, 2023
@philn philn requested a review from aperezdc February 10, 2023 09:35
@philn
Copy link
Member Author

philn commented Feb 10, 2023

cc @calvaris

@philn philn marked this pull request as draft February 10, 2023 09:36
@philn philn changed the title [CMake] DEBUG_FISSION is enabled on non-debug builds [CMake] DEBUG_FISSION is enabled for sccache clang builds Feb 10, 2023
@philn philn marked this pull request as ready for review February 10, 2023 09:44
@calvaris
Copy link
Contributor

But sscache only fails with RELEASE, right? DEBUG worked properly, right? From what I see this disables fission also for debug builds that should work.

@philn
Copy link
Member Author

philn commented Feb 10, 2023

Right, i'll update the patch.

@calvaris
Copy link
Contributor

Right, i'll update the patch.

But please, check it really worked with debug or maybe it was something nobody used...

@philn
Copy link
Member Author

philn commented Feb 10, 2023

I did!

@philn
Copy link
Member Author

philn commented Feb 13, 2023

Ping :)

@@ -159,6 +159,12 @@ if (CXX_COMPILER_SUPPORTS_GSPLIT_DWARF AND LD_SUPPORTS_SPLIT_DEBUG)
set(ENABLE_DEBUG_FISSION_DEFAULT ON)
endif ()

if (ENABLE_DEBUG_FISSION_DEFAULT AND SCCACHE_FOUND AND COMPILER_IS_CLANG AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
Copy link
Contributor

Choose a reason for hiding this comment

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

After some discussion, we decided to approve this if you test for RelWithDebInfo too:

Suggested change
if (ENABLE_DEBUG_FISSION_DEFAULT AND SCCACHE_FOUND AND COMPILER_IS_CLANG AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
if (ENABLE_DEBUG_FISSION_DEFAULT AND SCCACHE_FOUND AND COMPILER_IS_CLANG AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")

Copy link
Member Author

Choose a reason for hiding this comment

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

RelWithDebInfo GTK clang sccache build passed. Thanks for the review!

@philn philn added merge-queue Applied to send a pull request to merge-queue and removed merge-queue Applied to send a pull request to merge-queue labels Feb 17, 2023
@philn philn added the merge-queue Applied to send a pull request to merge-queue label Feb 17, 2023
https://bugs.webkit.org/show_bug.cgi?id=252037

Reviewed by Michael Catanzaro.

Keep DEBUG_FISSION disabled for sccache clang release builds because it's not supported.

* Source/cmake/OptionsCommon.cmake:

Canonical link: https://commits.webkit.org/260444@main
@webkit-commit-queue
Copy link
Collaborator

Committed 260444@main (55c9be4): https://commits.webkit.org/260444@main

Reviewed commits have been landed. Closing PR #9912 and removing active labels.

@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Feb 17, 2023
@webkit-early-warning-system webkit-early-warning-system merged commit 55c9be4 into WebKit:main Feb 17, 2023
@philn philn deleted the eng/252037 branch February 17, 2023 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake Bugzilla component for CMake build system changes
Projects
None yet
5 participants