fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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