You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data field in the cc_binary or cc_test rule makes data available at runtime (usually as part of the runfiles). This works well on Linux and MacOS, but does not work on Windows (on the latest bazel 7.2.1).
Feature requests: what underlying problem are you trying to solve with this feature?
Data is available at runtime to the executable.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
A minimal reproducer can be found here: https://github.com/classner/bazel_data_reproducer . Just run bazel test :test to see success on other platforms, failure on Windows. It's only a couple lines in the buildfile and a test checking whether the data file is available.
What operating system are you running Bazel on?
Windows and MacOS.
What's the output of bazel info release?
❯ bazel info release
release 7.2.1
on both machines.
If bazel info release returns "development version" or "(@non-git)", tell us how you built Bazel.
NA
What version of rules_cc do you use? Can you paste the workspace rule used to fetch rules_cc? What other relevant dependencies does your project have?
I do not explicitly request rules_cc and just work with the version that comes with Bazel.
What Bazel options do you use to trigger the issue? What C++ toolchain do you use?
No options, no explicit toolchain set (on Windows, this is an MSVC toolchain, on Mac OS Apple clang).
The text was updated successfully, but these errors were encountered:
Description of the problem / feature request:
The
data
field in thecc_binary
orcc_test
rule makes data available at runtime (usually as part of the runfiles). This works well on Linux and MacOS, but does not work on Windows (on the latest bazel 7.2.1).Feature requests: what underlying problem are you trying to solve with this feature?
Data is available at runtime to the executable.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
A minimal reproducer can be found here: https://github.com/classner/bazel_data_reproducer . Just run
bazel test :test
to see success on other platforms, failure on Windows. It's only a couple lines in the buildfile and a test checking whether the data file is available.What operating system are you running Bazel on?
Windows and MacOS.
What's the output of
bazel info release
?❯ bazel info release
release 7.2.1
on both machines.
If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.NA
What version of rules_cc do you use? Can you paste the workspace rule used to fetch rules_cc? What other relevant dependencies does your project have?
I do not explicitly request rules_cc and just work with the version that comes with Bazel.
What Bazel options do you use to trigger the issue? What C++ toolchain do you use?
No options, no explicit toolchain set (on Windows, this is an MSVC toolchain, on Mac OS Apple clang).
The text was updated successfully, but these errors were encountered: