Skip to content

consumer-setup: Qt Windows platforms set msvc, Windows preset flags leave cpp_rust and root .bazelrc (part of #11151) - #13099

Merged
TrapsterDK merged 2 commits into
mainfrom
issue-11151-msvc-defaults
Nov 17, 2026
Merged

TrapsterDK merged 2 commits into
mainfrom
issue-11151-msvc-defaults

Conversation

@TrapsterDK

@TrapsterDK TrapsterDK commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #11151

  • @rules_dx//qt:windows_x86_64 and :windows_arm64 set //cc:compiler=msvc through platform flags (child platforms inherit them); qt_rust and qt_tasks consumer.bazelrc drop the msvc and --enable_platform_specific_config lines.
  • The qt_* qualification platform select keys Windows on new os/cpu-only //qt/private/platforms:os_cpu_<cell> settings, so it no longer depends on the outer compiler flag.
  • The correctness preset (tools/bazelrc) now carries --experimental_override_platform_cpu_name=...windows_msvc_host=wx, build:windows --features=-coverage, --features=-gcc_coverage_map_format and the compiler-rt -D__MINGW_EXTENSION= copt. Root .bazelrc and the cpp_rust consumer.bazelrc drop them. root_bazelrc_allowlist.txt loses two entries.

Remaining for #11151: cuda consumer.bazelrc common:windows --@my_dx//cc:compiler=msvc (cuda rules or cuda/lang.json setup.flags, and the hermetic harness writing setup flags).

Tests: //tools/bazelrc:dx_preset_test and //tools/ci:root_bazelrc_allowlist_test passed locally. A cquery check showed that a child of //qt:windows_x86_64 gets compiler=msvc. fresh_clone_regenerates_dx_on_first_command ran dx completion, which skips the .dx sync since #12843, so it failed on main too; it now runs dx config. //cli/cli/tests/adopt:adopt_test passes locally with the updated fresh_init_dx.txt golden. The qualification and consumer tests were not run locally (nested Bazel); Windows evidence is green (run 44148412527).

Evidence: run 44138228442 green on windows_x86_64 (linux failed only in adopt_test, fixed); run 44145338753 timed out cpp_rust under the default 600s test_timeout (all else green); run 44148412527 green

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

…eave cpp_rust and root .bazelrc (part of #11151)

- qt:windows_x86_64 and qt:windows_arm64 carry flags for //cc:compiler=msvc; qt_rust and
  qt_tasks consumer.bazelrc drop the msvc and platform-specific-config lines.
- The qt_* qualification platform select keys Windows on os/cpu only.
- The correctness preset carries the Windows cpu name override and the coverage
  feature and compiler-rt copt flags under build:windows; root .bazelrc and the
  cpp_rust consumer.bazelrc drop them; the root allowlist shrinks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
…ion skips the .dx sync (part of #11151)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
@TrapsterDK
TrapsterDK marked this pull request as ready for review November 17, 2026 19:01
@TrapsterDK
TrapsterDK merged commit 178cf74 into main Nov 17, 2026
8 of 11 checks passed
@TrapsterDK
TrapsterDK deleted the issue-11151-msvc-defaults branch November 17, 2026 19:02
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.

1 participant