1 # needs-profiler-support
4 # FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works
5 # properly. Since we only have GCC on the CI ignore the test for now.
9 COMPILE_FLAGS=-Copt-level=3 -Clto=fat -Cprofile-generate="$(TMPDIR)"
12 $(RUSTC) $(COMPILE_FLAGS) test.rs
13 $(call RUN,test) || exit 1
14 [ -e "$(TMPDIR)"/default_*.profraw ] || (echo "No .profraw file"; exit 1)