2019-04-18 15:49:41 +02:00
|
|
|
# needs-profiler-support
|
2020-08-24 11:58:04 +02:00
|
|
|
# ignore-windows-gnu
|
|
|
|
|
|
|
|
# FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works
|
|
|
|
# properly. Since we only have GCC on the CI ignore the test for now.
|
2019-04-18 15:49:41 +02:00
|
|
|
|
2022-08-23 00:00:00 +00:00
|
|
|
include ../tools.mk
|
2018-03-13 12:40:57 +01:00
|
|
|
|
2019-05-28 16:48:03 +02:00
|
|
|
COMPILE_FLAGS=-Copt-level=3 -Clto=fat -Cprofile-generate="$(TMPDIR)"
|
2019-05-29 14:32:38 +02:00
|
|
|
|
2018-03-13 12:40:57 +01:00
|
|
|
all:
|
2019-05-29 14:32:38 +02:00
|
|
|
$(RUSTC) $(COMPILE_FLAGS) test.rs
|
2018-03-13 12:40:57 +01:00
|
|
|
$(call RUN,test) || exit 1
|
2019-04-10 13:46:37 +02:00
|
|
|
[ -e "$(TMPDIR)"/default_*.profraw ] || (echo "No .profraw file"; exit 1)
|