about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-10-09 14:08:13 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-10-09 20:58:27 +1100
commit7a0e8bd1fd9998765ac99a640566c57eeda9882e (patch)
tree90dbe4b2378f89d0b80cd26cfa56d017597e825d /src/tools/compiletest
parent8320a0116b66b6148b03ca280123c54d3c9ee218 (diff)
downloadrust-7a0e8bd1fd9998765ac99a640566c57eeda9882e.tar.gz
rust-7a0e8bd1fd9998765ac99a640566c57eeda9882e.zip
No need to cache the `profiler_runtime` flag
This cache struct entry was a relic from when profiler availability was
communicated via an environment variable rather than a command-line flag.
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/header/needs.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tools/compiletest/src/header/needs.rs b/src/tools/compiletest/src/header/needs.rs
index c304cb86015..a744fb61b9c 100644
--- a/src/tools/compiletest/src/header/needs.rs
+++ b/src/tools/compiletest/src/header/needs.rs
@@ -101,7 +101,7 @@ pub(super) fn handle_needs(
         },
         Need {
             name: "needs-profiler-runtime",
-            condition: cache.profiler_runtime,
+            condition: config.profiler_runtime,
             ignore_reason: "ignored when the profiler runtime is not available",
         },
         Need {
@@ -220,7 +220,6 @@ pub(super) struct CachedNeedsConditions {
     sanitizer_memtag: bool,
     sanitizer_shadow_call_stack: bool,
     sanitizer_safestack: bool,
-    profiler_runtime: bool,
     xray: bool,
     rust_lld: bool,
     dlltool: bool,
@@ -247,7 +246,6 @@ impl CachedNeedsConditions {
             sanitizer_memtag: sanitizers.contains(&Sanitizer::Memtag),
             sanitizer_shadow_call_stack: sanitizers.contains(&Sanitizer::ShadowCallStack),
             sanitizer_safestack: sanitizers.contains(&Sanitizer::Safestack),
-            profiler_runtime: config.profiler_runtime,
             xray: config.target_cfg().xray,
 
             // For tests using the `needs-rust-lld` directive (e.g. for `-Clink-self-contained=+linker`),