fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1# needs-profiler-support 2 3-include ../tools.mk 4 5COMPILE_FLAGS=-Copt-level=3 -Clto=fat -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)