diff options
| author | Urgau <urgau@numericable.fr> | 2023-03-09 21:10:08 +0100 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2023-03-09 21:55:00 +0100 |
| commit | 3455d66041eb1d766814b57608d7ae8f20c8b04e (patch) | |
| tree | 23381cae64cffea90f593f210aa91a8eddc15af1 /compiler/rustc_interface/src | |
| parent | 39f2657d1101b50f9b71ae460b762d330cc8426b (diff) | |
| download | rust-3455d66041eb1d766814b57608d7ae8f20c8b04e.tar.gz rust-3455d66041eb1d766814b57608d7ae8f20c8b04e.zip | |
Honor current target when checking conditional compilation values
This is fixed by simply using the currently registered target in the current session. We need to use it because of target json that are not by design included in the rustc list of targets.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs index e5d2fb2ea28..043892410ce 100644 --- a/compiler/rustc_interface/src/util.rs +++ b/compiler/rustc_interface/src/util.rs @@ -110,7 +110,7 @@ pub fn create_session( add_configuration(&mut cfg, &mut sess, &*codegen_backend); let mut check_cfg = config::to_crate_check_config(check_cfg); - check_cfg.fill_well_known(); + check_cfg.fill_well_known(&sess.target); sess.parse_sess.config = cfg; sess.parse_sess.check_config = check_cfg; |
