d2219c2e2e
This makes `rustc` support `@path` arguments on the command line. The `path` is opened and the file is interpreted as new command line options which are logically inserted at that point in the command-line. The options in the file are one per line. The file is UTF-8 encoded, and may have either Unix or Windows line endings. It does not support recursive use of `@path`. This is useful for very large command lines, or when command-lines are being generated into files by other tooling.
14 lines
295 B
Rust
14 lines
295 B
Rust
// Check to see if we can get parameters from an @argsfile file
|
|
//
|
|
// build-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() {
|
|
}
|