diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2019-01-13 09:18:37 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2019-03-05 00:36:23 +0100 |
| commit | c3c1c8d4e0f01c869f8381e70fbd4d103534493f (patch) | |
| tree | 8cc535c809f249b602f9372ca4dca0b6d9b56e02 /src/librustc | |
| parent | 97431a40908a32db31fbc1f10af365e653309a90 (diff) | |
| download | rust-c3c1c8d4e0f01c869f8381e70fbd4d103534493f.tar.gz rust-c3c1c8d4e0f01c869f8381e70fbd4d103534493f.zip | |
Allow linking to a proc macro on the target in metadata and still use a host proc macro to execute them
Diffstat (limited to 'src/librustc')
| -rw-r--r-- | src/librustc/session/config.rs | 2 | ||||
| -rw-r--r-- | src/librustc/session/filesearch.rs | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index 774ab0333db..a4c587b5ca7 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -1232,6 +1232,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, Use with RUST_REGION_GRAPH=help for more info"), parse_only: bool = (false, parse_bool, [UNTRACKED], "parse only; do not compile, assemble, or link"), + dual_proc_macros: bool = (false, parse_bool, [TRACKED], + "load proc macros for both target and host, but only link to the target"), no_codegen: bool = (false, parse_bool, [TRACKED], "run all passes except codegen; no output"), treat_err_as_bug: bool = (false, parse_bool, [TRACKED], diff --git a/src/librustc/session/filesearch.rs b/src/librustc/session/filesearch.rs index 77f190e2812..cf09d45ca38 100644 --- a/src/librustc/session/filesearch.rs +++ b/src/librustc/session/filesearch.rs @@ -18,6 +18,7 @@ pub enum FileMatch { // A module for searching for libraries +#[derive(Clone)] pub struct FileSearch<'a> { sysroot: &'a Path, triple: &'a str, |
