2019-04-18 08:49:41 -05:00
|
|
|
# needs-profiler-support
|
2020-08-24 04:58:04 -05:00
|
|
|
# ignore-windows-gnu
|
2023-08-30 06:45:57 -05:00
|
|
|
# ignore-cross-compile
|
2020-08-24 04:58:04 -05:00
|
|
|
|
|
|
|
# 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-02-18 19:49:48 -06:00
|
|
|
|
2019-05-28 09:48:03 -05:00
|
|
|
COMPILE_FLAGS=-g -Cprofile-generate="$(TMPDIR)"
|
2019-05-29 07:32:38 -05:00
|
|
|
|
2018-02-18 19:49:48 -06:00
|
|
|
all:
|
2019-05-29 07:32:38 -05:00
|
|
|
$(RUSTC) $(COMPILE_FLAGS) test.rs
|
2018-02-18 19:49:48 -06:00
|
|
|
$(call RUN,test) || exit 1
|
2019-04-10 06:46:37 -05:00
|
|
|
[ -e "$(TMPDIR)"/default_*.profraw ] || (echo "No .profraw file"; exit 1)
|