rust/src/librustc_driver
bors 201e52e5fe Auto merge of #63175 - jsgf:argsfile, r=jsgf
rustc: implement argsfiles for command line

Many tools, such as gcc and gnu-ld, support "args files" - that is, being able to specify @file on the command line.  This causes `file` to be opened and parsed for command line options. They're separated with whitespace; whitespace can be quoted with double or single quotes, and everything can be \\-escaped. Args files may recursively include other args files via `@file2`.

See https://sourceware.org/binutils/docs/ld/Options.html#Options for the documentation of gnu-ld's @file parameters.

This is useful for very large command lines, or when command lines are being generated into files by other tooling.
2019-08-22 06:14:49 +00:00
..
args.rs Move argfile expansion into run_compiler 2019-08-20 12:34:14 -07:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Restore the rustc_plugin crate in the sysroot 2019-08-20 13:30:50 +02:00
lib.rs Auto merge of #63175 - jsgf:argsfile, r=jsgf 2019-08-22 06:14:49 +00:00
pretty.rs normalize use of backticks for compiler messages in remaining modules 2019-07-23 23:09:59 +02:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00

The driver crate is effectively the "main" function for the rust compiler. It orchestrates the compilation process and "knits together" the code from the other crates within rustc. This crate itself does not contain any of the "main logic" of the compiler (though it does have some code related to pretty printing or other minor compiler options).

For more information about how the driver works, see the rustc guide.