Repository navigation
Conversation
…ator applies (#3096) The Darwin half of the app target's conversion genex does not reach macOS app TUs: master's release-gate macOS jobs stop in Qt 6.11's own headers (qversiontagging.h:80, qnamespace.h:1926/1930/1935) with -Werror,-Wsign-conversion even though frontend/CMakeLists.txt asks for the opposite. Assert the pin as an if(OS_MACOS) branch instead, which no generator can drop, and fail while the tree states it inside $<NOT:$<PLATFORM_ID:Darwin>>. Red: uv run python -m unittest ci/test_frontend_conversion_optins.py FAIL: test_darwin_pins_the_group_in_a_branch_the_xcode_generator_honours '$<NOT:$<PLATFORM_ID:Darwin>>' unexpectedly found
#3096) The macOS app lane builds with the Xcode generator, and a $<NOT:$<PLATFORM_ID:Darwin>> genex inside target_compile_options does not reach its TUs: master's release-gate macOS jobs stop in Qt 6.11's own headers (qversiontagging.h:80 "int to quintptr", qnamespace.h:1926/1930/1935) with -Werror,-Wsign-conversion although frontend/CMakeLists.txt asks for the opposite, so #2979's guard never took effect on that generator. State the two platforms as an if(OS_MACOS)/else branch: Apple gets the -Wno-sign-conversion pin as a real compile option, the other lanes keep the ratcheted group. Linux/Windows configure output is unchanged (checked on a scratch project: the flag is still in the non-Darwin FLAGS). Same lane, second diagnostic: frontend.widgets+.hpp.cpp stops on frontend/components/VolumeMeterSnapshot.hpp:32, "implicit conversion from 'uint64_t' to 'double' may lose precision" (-Wimplicit-int-float-conversion), which AppleClang reports by default. State the conversion at the call site. Green: uv run python -m unittest ci/test_frontend_conversion_optins.py (3 tests OK), ./lint ok (gersemi reformat of the new branch). Refs #3096
Member
Author
|
Superseded by #3100, which carries only the verified half (the volume meter's conversion). This PR also moved the app target's Apple pin into an |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The macOS app lane stops inside Qt 6.11's own headers after #2979/#2950, and one of our own converted units stops on an unflagged float conversion. Two fixes on one lane:
frontend/CMakeLists.txt— the app target asked for-Wsign-conversionbehind$<NOT:$<PLATFORM_ID:Darwin>>, inside$<COMPILE_LANG_AND_ID:CXX,...>. On the Xcode generator the macOS lane requires, that nested Darwin exclusion does not reach the TUs: release-gate run 41114625518 at mastera8d2cb9a9(so build(frontend): keep the sign-conversion ratchet off the Darwin TUs (#2950) #2979 was in) still reports-Werror,-Wsign-conversionforfrontend.sparkle+.hpp.cppinqversiontagging.h:80andqnamespace.h:1926/1930/1935, and forfrontend.settings-obshotkeycapture+.hpp.cppin the run before it. The two platforms are now stated asif(OS_MACOS)/else()branches, which no generator can drop: Apple gets-Wno-sign-conversionas a real compile option, the other lanes keep the ratcheted group exactly as before.frontend/components/VolumeMeterSnapshot.hpp:32— the same lane stops onimplicit conversion from 'uint64_t' to 'double' may lose precision(-Wimplicit-int-float-conversion, which AppleClang reports without an opt-in). State the conversion at the call site, per build(cmake): Drop the conversion pins (-Wno-conversion, -Wno-sign-conversion, -Wno-float-conversion) #2625.RED
7108bb9—test(ci): hold the app target's Apple pin to a branch the Xcode generator applies (#3096)The test also holds the opt-in to one block per target: exactly one block may name a positive conversion group, and the pin is asserted to sit on the
OS_MACOSbranch.GREEN
04302ce—fix(frontend): state the app target's Apple conversion pin as a branch (#3096)The comment-only change is stripped before the assertions, so a stale comment cannot satisfy the guard.
What I could not verify here
This checkout is Linux; the click that matters — the macOS app lane compiling
frontend.sparkle+.hpp.cppwith the pin in place — needs the macOS runner.Refs #3096on purpose: a dispatchedscheduled.yamlrun on this branch (or the next nightly on master) is the evidence that closes it. The non-Darwin side was checked on a scratch Ninja project: the flag still lands inFLAGSfor theelse()branch.No
docs/features.mdline: no user-visible behaviour changes.Test cost: no new Rust tests.