Skip to content

tokio_macros cause RUSTFLAGS=-Zsanitizer=address test to fail #5519

Answered by taiki-e
FallingSnow asked this question in Q&A
Discussion options

You must be logged in to vote

You have to pass --target flag.

See also documentation of -Z sanitizer:

Build scripts and procedural macros

Use of sanitizers together with build scripts and procedural macros is technically possible, but in almost all cases it would be best avoided. This is especially true for procedural macros which would require an instrumented version of rustc.

In more practical terms when using cargo always remember to pass --target flag, so that rustflags will not be applied to build scripts and procedural macros.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@FallingSnow
Comment options

Answer selected by FallingSnow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants