@@ -69,7 +69,7 @@ struct ConfigBuilder {
6969 llvm_version : Option < String > ,
7070 git_hash : bool ,
7171 system_llvm : bool ,
72- profiler_support : bool ,
72+ profiler_runtime : bool ,
7373}
7474
7575impl ConfigBuilder {
@@ -113,8 +113,8 @@ impl ConfigBuilder {
113113 self
114114 }
115115
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 ;
118118 self
119119 }
120120
@@ -162,8 +162,8 @@ impl ConfigBuilder {
162162 if self . system_llvm {
163163 args. push ( "--system-llvm" . to_owned ( ) ) ;
164164 }
165- if self . profiler_support {
166- args. push ( "--profiler-support " . to_owned ( ) ) ;
165+ if self . profiler_runtime {
166+ args. push ( "--profiler-runtime " . to_owned ( ) ) ;
167167 }
168168
169169 args. push ( "--rustc-path" . to_string ( ) ) ;
@@ -368,12 +368,12 @@ fn sanitizers() {
368368}
369369
370370#[ 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 " ) ) ;
374374
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 " ) ) ;
377377}
378378
379379#[ test]
@@ -573,12 +573,12 @@ fn families() {
573573
574574#[ test]
575575fn 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 ( ) ;
578578 assert ! ( check_ignore( & config, "//@ ignore-coverage-map" ) ) ;
579579 assert ! ( !check_ignore( & config, "//@ ignore-coverage-run" ) ) ;
580580
581- let config = cfg ( ) . mode ( "coverage-run" ) . profiler_support ( true ) . build ( ) ;
581+ let config = cfg ( ) . mode ( "coverage-run" ) . profiler_runtime ( true ) . build ( ) ;
582582 assert ! ( !check_ignore( & config, "//@ ignore-coverage-map" ) ) ;
583583 assert ! ( check_ignore( & config, "//@ ignore-coverage-run" ) ) ;
584584}
0 commit comments