2019-04-18 08:49:41 -05:00
|
|
|
# needs-profiler-support
|
2020-08-24 04:58:04 -05: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 08:49:41 -05:00
|
|
|
|
2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2018-03-13 06:40:57 -05:00
|
|
|
|
2019-05-28 09:48:03 -05:00
|
|
|
COMPILE_FLAGS=-Copt-level=3 -Clto=fat -Cprofile-generate="$(TMPDIR)"
|
2019-05-29 07:32:38 -05:00
|
|
|
|
2018-03-13 06:40:57 -05:00
|
|
|
all:
|
2019-05-29 07:32:38 -05:00
|
|
|
$(RUSTC) $(COMPILE_FLAGS) test.rs
|
2018-03-13 06:40:57 -05:00
|
|
|
$(call RUN,test) || exit 1
|
2019-04-10 06:46:37 -05:00
|
|
|
[ -e "$(TMPDIR)"/default_*.profraw ] || (echo "No .profraw file"; exit 1)
|