File tree 3 files changed +3
-15
lines changed
src/tools/compiletest/src
3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -578,6 +578,8 @@ pub struct TargetCfg {
578
578
pub ( crate ) dynamic_linking : bool ,
579
579
#[ serde( rename = "supported-sanitizers" , default ) ]
580
580
pub ( crate ) sanitizers : Vec < Sanitizer > ,
581
+ #[ serde( rename = "supports-xray" , default ) ]
582
+ pub ( crate ) xray : bool ,
581
583
}
582
584
583
585
impl TargetCfg {
Original file line number Diff line number Diff line change 1
1
use crate :: common:: { Config , Debugger , Sanitizer } ;
2
2
use crate :: header:: IgnoreDecision ;
3
- use crate :: util;
4
3
5
4
pub ( super ) fn handle_needs (
6
5
cache : & CachedNeedsConditions ,
@@ -235,7 +234,7 @@ impl CachedNeedsConditions {
235
234
sanitizer_shadow_call_stack : sanitizers. contains ( & Sanitizer :: ShadowCallStack ) ,
236
235
sanitizer_safestack : sanitizers. contains ( & Sanitizer :: Safestack ) ,
237
236
profiler_support : std:: env:: var_os ( "RUSTC_PROFILER_SUPPORT" ) . is_some ( ) ,
238
- xray : util :: XRAY_SUPPORTED_TARGETS . contains ( target ) ,
237
+ xray : config . target_cfg ( ) . xray ,
239
238
240
239
// For tests using the `needs-rust-lld` directive (e.g. for `-Zgcc-ld=lld`), we need to find
241
240
// whether `rust-lld` is present in the compiler under test.
Original file line number Diff line number Diff line change @@ -9,19 +9,6 @@ use tracing::*;
9
9
#[ cfg( test) ]
10
10
mod tests;
11
11
12
- pub const XRAY_SUPPORTED_TARGETS : & [ & str ] = & [
13
- "aarch64-linux-android" ,
14
- "aarch64-unknown-linux-gnu" ,
15
- "aarch64-unknown-linux-musl" ,
16
- "x86_64-linux-android" ,
17
- "x86_64-unknown-freebsd" ,
18
- "x86_64-unknown-linux-gnu" ,
19
- "x86_64-unknown-linux-musl" ,
20
- "x86_64-unknown-netbsd" ,
21
- "x86_64-unknown-none-linuxkernel" ,
22
- "x86_64-unknown-openbsd" ,
23
- ] ;
24
-
25
12
pub fn make_new_path ( path : & str ) -> String {
26
13
assert ! ( cfg!( windows) ) ;
27
14
// Windows just uses PATH as the library search path, so we have to
You can’t perform that action at this time.
0 commit comments