fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
463 B13 linesraw
1# needs-profiler-support
2
3include ../tools.mk
4
5COMPILE_FLAGS=-O -Ccodegen-units=1 -Cprofile-generate="$(TMPDIR)"
6
7all:
8	$(RUSTC) $(COMPILE_FLAGS) --emit=llvm-ir test.rs
9	# We expect symbols starting with "__llvm_profile_".
10	$(CGREP) "__llvm_profile_" < $(TMPDIR)/test.ll
11	# We do NOT expect the "__imp_" version of these symbols.
12	$(CGREP) -v "__imp___llvm_profile_" < $(TMPDIR)/test.ll # 64 bit
13	$(CGREP) -v "__imp____llvm_profile_" < $(TMPDIR)/test.ll # 32 bit