fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
466 B18 linesraw
1# needs-profiler-support
2
3-include ../tools.mk
4
5COMPILE_FLAGS=-g -Cprofile-generate="$(TMPDIR)"
6
7# LLVM doesn't yet support instrumenting binaries that use unwinding on MSVC:
8# https://github.com/rust-lang/rust/issues/61002
9#
10# Things work fine with -Cpanic=abort though.
11ifdef IS_MSVC
12COMPILE_FLAGS+= -Cpanic=abort
13endif
14
15all:
16	$(RUSTC) $(COMPILE_FLAGS) test.rs
17	$(call RUN,test) || exit 1
18	[ -e "$(TMPDIR)"/default_*.profraw ] || (echo "No .profraw file"; exit 1)