Factors out the `rustc_driver` logic that handles argument files
so that rustdoc supports them as well, e.g.:
rustdoc @argfile
This is needed to be able to generate docs for projects that
already use argument files when compiling them, e.g. projects
that pass a huge number of `--cfg` arguments.
The feature was stabilized for `rustc` in #66172.
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
13 lines
295 B
Rust
13 lines
295 B
Rust
// Check to see if we can get parameters from an @argsfile file
|
|
//
|
|
// check-pass
|
|
// compile-flags: --cfg cmdline_set @{{src-base}}/commandline-argfile.args
|
|
|
|
#[cfg(not(cmdline_set))]
|
|
compile_error!("cmdline_set not set");
|
|
|
|
#[cfg(not(unbroken))]
|
|
compile_error!("unbroken not set");
|
|
|
|
fn main() {
|
|
}
|