Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDoc tests ignore RUSTFLAGS #3227
Comments
This comment has been minimized.
This comment has been minimized.
|
Ok so as pointed out by @rkruppe I was corrected in that we actually can't do this blindly per se. That is, rustdoc doesn't currently have a feature for "pass these flags to the compiler". What you can do today, however, is hopefully use RUSTDOCFLAGS! |
This comment has been minimized.
This comment has been minimized.
|
It sounds like using |
carols10cents
closed this
Sep 29, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
crumblingstatue commentedOct 25, 2016
•
edited
(Moved from rust-lang/rust#37330)
I am writing doc examples for the bindings of a C library.
In my
RUSTFLAGS, I add a search path for the C library using-L /path/to/lib. (needed because I am using a custom version of the library that's not installed globally)cargo build/runpicks this up fine, and the C library links correctly.However, doc tests cause a linking error, because
RUSTFLAGSseem to be ignored when compiling doc examples.