about summary refs log tree commit diff
path: root/tests/run-make
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-03-16 17:02:30 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-06-14 13:31:46 +1000
commit5330ccdb345b24be57f051c6659cd3b33a65fdca (patch)
tree0db6d16c3a15ef58ca51232d5d04fd78b9b80252 /tests/run-make
parent0ef0dd24510b52da980889546fcd15254dc56a23 (diff)
downloadrust-5330ccdb345b24be57f051c6659cd3b33a65fdca.tar.gz
rust-5330ccdb345b24be57f051c6659cd3b33a65fdca.zip
Use `-Zno-profiler-runtime` instead of `//@ needs-profiler-support`
For PGO/coverage tests that don't need to build or run an actual artifact, we
can use `-Zno-profiler-runtime` to run the test even when the profiler runtime
is not available.
Diffstat (limited to 'tests/run-make')
-rw-r--r--tests/run-make/pgo-gen-no-imp-symbols/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/run-make/pgo-gen-no-imp-symbols/Makefile b/tests/run-make/pgo-gen-no-imp-symbols/Makefile
index 7f72b11b611..d2baa145ba5 100644
--- a/tests/run-make/pgo-gen-no-imp-symbols/Makefile
+++ b/tests/run-make/pgo-gen-no-imp-symbols/Makefile
@@ -1,8 +1,6 @@
-# needs-profiler-support
-
 include ../tools.mk
 
-COMPILE_FLAGS=-O -Ccodegen-units=1 -Cprofile-generate="$(TMPDIR)"
+COMPILE_FLAGS=-O -Ccodegen-units=1 -Cprofile-generate="$(TMPDIR)" -Zno-profiler-runtime
 
 all:
 	$(RUSTC) $(COMPILE_FLAGS) --emit=llvm-ir test.rs