]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/pgo-gen-no-imp-symbols/Makefile
Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup
[rust.git] / src / test / run-make-fulldeps / pgo-gen-no-imp-symbols / Makefile
1 # needs-profiler-support
2
3 include ../tools.mk
4
5 COMPILE_FLAGS=-O -Ccodegen-units=1 -Cprofile-generate="$(TMPDIR)"
6
7 all:
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