Skip to content

examples: temporary fix for cmake_hello_world_lib/shared on windows#1475

Merged
novas0x2a merged 2 commits intomainfrom
novas0x2a-fix-cmake-shared
Mar 9, 2026
Merged

examples: temporary fix for cmake_hello_world_lib/shared on windows#1475
novas0x2a merged 2 commits intomainfrom
novas0x2a-fix-cmake-shared

Conversation

@novas0x2a
Copy link
Copy Markdown
Collaborator

This fails due to a bug in bazel / in rules_cc (depending on bazel version). See bazelbuild/rules_cc#623. With upstream's approval I plan to roll this fix out everywhere.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the cmake_hello_world_lib/shared example tests to avoid a known Windows runtime issue with copying DLLs when running cc_test, while still keeping some validation in place.

Changes:

  • Mark :test_libhello as incompatible on Windows via target_compatible_with.
  • Add a bazel_skylib build_test target to ensure :libhello at least builds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread examples/cmake_hello_world_lib/shared/BUILD.bazel Outdated
Comment thread examples/cmake_hello_world_lib/shared/BUILD.bazel
Comment thread examples/cmake_hello_world_lib/shared/BUILD.bazel
This fails due to a bug in bazel / in rules_cc (depending on bazel
version). See bazelbuild/rules_cc#623
@novas0x2a novas0x2a force-pushed the novas0x2a-fix-cmake-shared branch from d080181 to 9d40368 Compare March 7, 2026 08:44
@novas0x2a novas0x2a enabled auto-merge (squash) March 9, 2026 03:37
@novas0x2a novas0x2a merged commit d3e07fd into main Mar 9, 2026
5 checks passed
@novas0x2a novas0x2a deleted the novas0x2a-fix-cmake-shared branch March 9, 2026 04:37
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.

3 participants