rust/src/librustdoc
bors c13a929d58 auto merge of #12020 : alexcrichton/rust/output-flags, r=brson
This commit removes the -c, --emit-llvm, -s, --rlib, --dylib, --staticlib,
--lib, and --bin flags from rustc, adding the following flags:

* --emit=[asm,ir,bc,obj,link]
* --crate-type=[dylib,rlib,staticlib,bin,lib]

The -o option has also been redefined to be used for *all* flavors of outputs.
This means that we no longer ignore it for libraries. The --out-dir remains the
same as before.

The new logic for files that rustc emits is as follows:

1. Output types are dictated by the --emit flag. The default value is
   --emit=link, and this option can be passed multiple times and have all options
   stacked on one another.
2. Crate types are dictated by the --crate-type flag and the #[crate_type]
   attribute. The flags can be passed many times and stack with the crate
   attribute.
3. If the -o flag is specified, and only one output type is specified, the
   output will be emitted at this location. If more than one output type is
   specified, then the filename of -o is ignored, and all output goes in the
   directory that -o specifies. The -o option always ignores the --out-dir
   option.
4. If the --out-dir flag is specified, all output goes in this directory.
5. If -o and --out-dir are both not present, all output goes in the directory of
   the crate file.
6. When multiple output types are specified, the filestem of all output is the
   same as the name of the CrateId (derived from a crate attribute or from the
   filestem of the crate file).

Closes #7791
Closes #11056
Closes #11667
2014-02-06 12:41:30 -08:00
..
html rustdoc: update deps 2014-02-05 19:54:01 +01:00
clean.rs syntax: convert LitBinary from @[u8] to Rc<~[u8]>. 2014-02-02 02:59:03 +11:00
core.rs Redesign output flags for rustc 2014-02-06 11:14:13 -08:00
doctree.rs Updated librustdoc and librustpkg to use the proper UpperCase names from libsyntax. 2014-01-09 22:25:28 +02:00
fold.rs Fix rustdoc output of enums with private variants 2013-12-16 21:30:02 -08:00
lib.rs getopts: replaced base functions with those from group 2014-02-06 10:04:26 -08:00
passes.rs Uppercase numeric constants 2014-01-25 21:38:25 +13:00
plugins.rs path2: Adjust the API to remove all the _str mutation methods 2013-10-15 22:18:30 -07:00
test.rs auto merge of #12020 : alexcrichton/rust/output-flags, r=brson 2014-02-06 12:41:30 -08:00
visit_ast.rs syntax: convert ast_map to use a SmallIntMap. 2014-01-19 12:56:26 +11:00