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

Bug: Thread sanitizer broken with Bazel 8.0.0 #3121

Open
jpsim opened this issue Dec 17, 2024 · 1 comment
Open

Bug: Thread sanitizer broken with Bazel 8.0.0 #3121

jpsim opened this issue Dec 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jpsim
Copy link
Contributor

jpsim commented Dec 17, 2024

Description

Enabling ThreadSanitizer in Xcode with Bazel 8.0.0 produces the following error:

ERROR: --swiftcopt=sanitize-thread :: Unrecognized option: --swiftcopt=sanitize-thread

Reproduction steps

Enable thread sanitizer in the Xcode UI or in the rules_xcodeproj definition with:

xcschemes.diagnostics(
    thread_sanitizer = True,
)

Then build the scheme.

Expected behavior

ThreadSanitizer should work.

rules_xcodeproj version

2.10.0

Xcode version

16.2

Bazel version

8.0.0

rules_apple version

3.16.1

rules_swift version

2.3.1

Additional information

No response

@jpsim jpsim added the bug Something isn't working label Dec 17, 2024
@brentleyjones
Copy link
Contributor

brentleyjones commented Dec 17, 2024

We need to adjust the rules to use the new flags from rules_swift. (And they need to use canonical labels, since we won't know what the user has named the dep.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants