From 0b0a5ac032d121f89bae2e9906d70be771e39887 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Sun, 4 Jun 2017 19:05:03 +0100 Subject: [PATCH] Run profiler test only if built with profiler support --- src/test/run-make/profile/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/run-make/profile/Makefile b/src/test/run-make/profile/Makefile index 94a2a30869b5..7300bfc95536 100644 --- a/src/test/run-make/profile/Makefile +++ b/src/test/run-make/profile/Makefile @@ -1,7 +1,9 @@ -include ../tools.mk all: +ifeq ($(PROFILER_SUPPORT),1) $(RUSTC) -g -Z profile test.rs $(call RUN,test) || exit 1 [ -e "$(TMPDIR)/test.gcno" ] || (echo "No .gcno file"; exit 1) [ -e "$(TMPDIR)/test.gcda" ] || (echo "No .gcda file"; exit 1) +endif