@@ -69,7 +69,7 @@ struct ConfigBuilder {
69
69
llvm_version : Option < String > ,
70
70
git_hash : bool ,
71
71
system_llvm : bool ,
72
- profiler_support : bool ,
72
+ profiler_runtime : bool ,
73
73
}
74
74
75
75
impl ConfigBuilder {
@@ -113,8 +113,8 @@ impl ConfigBuilder {
113
113
self
114
114
}
115
115
116
- fn profiler_support ( & mut self , s : bool ) -> & mut Self {
117
- self . profiler_support = s ;
116
+ fn profiler_runtime ( & mut self , is_available : bool ) -> & mut Self {
117
+ self . profiler_runtime = is_available ;
118
118
self
119
119
}
120
120
@@ -162,8 +162,8 @@ impl ConfigBuilder {
162
162
if self . system_llvm {
163
163
args. push ( "--system-llvm" . to_owned ( ) ) ;
164
164
}
165
- if self . profiler_support {
166
- args. push ( "--profiler-support " . to_owned ( ) ) ;
165
+ if self . profiler_runtime {
166
+ args. push ( "--profiler-runtime " . to_owned ( ) ) ;
167
167
}
168
168
169
169
args. push ( "--rustc-path" . to_string ( ) ) ;
@@ -368,12 +368,12 @@ fn sanitizers() {
368
368
}
369
369
370
370
#[ test]
371
- fn profiler_support ( ) {
372
- let config: Config = cfg ( ) . profiler_support ( false ) . build ( ) ;
373
- assert ! ( check_ignore( & config, "//@ needs-profiler-support " ) ) ;
371
+ fn profiler_runtime ( ) {
372
+ let config: Config = cfg ( ) . profiler_runtime ( false ) . build ( ) ;
373
+ assert ! ( check_ignore( & config, "//@ needs-profiler-runtime " ) ) ;
374
374
375
- let config: Config = cfg ( ) . profiler_support ( true ) . build ( ) ;
376
- assert ! ( !check_ignore( & config, "//@ needs-profiler-support " ) ) ;
375
+ let config: Config = cfg ( ) . profiler_runtime ( true ) . build ( ) ;
376
+ assert ! ( !check_ignore( & config, "//@ needs-profiler-runtime " ) ) ;
377
377
}
378
378
379
379
#[ test]
@@ -573,12 +573,12 @@ fn families() {
573
573
574
574
#[ test]
575
575
fn ignore_coverage ( ) {
576
- // Indicate profiler support so that "coverage-run" tests aren't skipped.
577
- let config = cfg ( ) . mode ( "coverage-map" ) . profiler_support ( true ) . build ( ) ;
576
+ // Indicate profiler runtime availability so that "coverage-run" tests aren't skipped.
577
+ let config = cfg ( ) . mode ( "coverage-map" ) . profiler_runtime ( true ) . build ( ) ;
578
578
assert ! ( check_ignore( & config, "//@ ignore-coverage-map" ) ) ;
579
579
assert ! ( !check_ignore( & config, "//@ ignore-coverage-run" ) ) ;
580
580
581
- let config = cfg ( ) . mode ( "coverage-run" ) . profiler_support ( true ) . build ( ) ;
581
+ let config = cfg ( ) . mode ( "coverage-run" ) . profiler_runtime ( true ) . build ( ) ;
582
582
assert ! ( !check_ignore( & config, "//@ ignore-coverage-map" ) ) ;
583
583
assert ! ( check_ignore( & config, "//@ ignore-coverage-run" ) ) ;
584
584
}
0 commit comments