d9497749a8
This will make @path work with miri and other non-standard entrypoints. Also since this simplifies librustc_driver::args, move it into a simple source file. Also remove the tests since they're doing nothing more than checking `str::lines` has the right behaviour.
17 lines
512 B
Rust
17 lines
512 B
Rust
// Check to see if we can get parameters from an @argsfile file
|
|
//
|
|
// ignore-tidy-linelength
|
|
// build-fail
|
|
// normalize-stderr-test: "os error \d+" -> "os error $$ERR"
|
|
// normalize-stderr-test: "commandline-argfile-missing.args:[^(]*" -> "commandline-argfile-missing.args: $$FILE_MISSING "
|
|
// compile-flags: --cfg cmdline_set @{{src-base}}/commandline-argfile-missing.args
|
|
|
|
#[cfg(not(cmdline_set))]
|
|
compile_error!("cmdline_set not set");
|
|
|
|
#[cfg(not(unbroken))]
|
|
compile_error!("unbroken not set");
|
|
|
|
fn main() {
|
|
}
|