]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/pgo-gen-no-imp-symbols/Makefile
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / 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