rust/src/librustc_metadata
Mazdak Farrokhzad 4c3e95e84b
Rollup merge of #67074 - ehuss:extern-options, r=petrochenkov
Add options to --extern flag.

This changes the `--extern` flag so that it can take a series of options that changes its behavior. The general syntax is `[opts ':'] name ['=' path]` where `opts` is a comma separated list of options. Two options are supported, `priv` which replaces `--extern-private` and `noprelude` which avoids adding the crate to the extern prelude.

```text
--extern priv:mylib=/path/to/libmylib.rlib
--extern noprelude:alloc=/path/to/liballoc.rlib
```

`noprelude` is to be used by Cargo's build-std feature in order to use `--extern` to reference standard library crates.

This also includes a second commit which adds the `aux-crate` directive to compiletest. I can split this off into a separate PR if desired, but it helps with defining these kinds of tests. It is based on #54020, and can be used in the future to replace and simplify some of the Makefile tests.
2019-12-11 10:10:44 +01:00
..
dynamic_lib Separate librustc_metadata module 2019-06-16 14:17:01 +03:00
rmeta rustc: Apply clearer naming to BodyAndCache, fix Deref impl, remove unneeded Index impl, remove body fn 2019-12-05 22:58:41 -05:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Update measureme crate to 0.5.0. 2019-12-03 10:33:24 +01:00
creader.rs Rollup merge of #67074 - ehuss:extern-options, r=petrochenkov 2019-12-11 10:10:44 +01:00
dependency_format.rs rustc: Move some queries to rustc_metadata 2019-11-28 20:59:57 +03:00
dynamic_lib.rs rustc_metadata: Privatize private code and remove dead code 2019-10-14 18:05:45 +03:00
foreign_modules.rs rustc_metadata: Privatize private code and remove dead code 2019-10-14 18:05:45 +03:00
lib.rs Use to_option in various places 2019-12-06 12:23:23 +00:00
link_args.rs Make doc comments cheaper with AttrKind. 2019-11-06 23:05:07 +11:00
locator.rs Add options to --extern flag. 2019-12-09 08:08:13 -08:00
native_libs.rs move GateIssue to rustc_feature & simplify emit_feature_err 2019-11-30 07:40:28 +01:00