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

data not made available on Windows #231

Open
classner opened this issue Aug 5, 2024 · 0 comments
Open

data not made available on Windows #231

classner opened this issue Aug 5, 2024 · 0 comments

Comments

@classner
Copy link

classner commented Aug 5, 2024

Description of the problem / feature request:

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).

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

No branches or pull requests

1 participant