fork/rust

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

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

master
763 B16 linesraw
1include ../tools.mk
2
3# only-windows-msvc
4
5# tests if the pdb contains the following information in the LF_BUILDINFO:
6# 1. the commandline args to compile it (cmd)
7# 2. full path to the compiler (cl)
8
9# we just do a stringsearch on the pdb, as these need to show up at least once, as the LF_BUILDINFO is created for each cgu
10# actual parsing would be better, but this is a simple and good enough solution for now
11
12all:
13	$(RUSTC_ORIGINAL) main.rs -g --crate-name my_crate_name --crate-type bin -C metadata=dc9ef878b0a48666 --out-dir $(TMPDIR)
14	cat '$(TMPDIR)/my_crate_name.pdb' | grep -F '$(RUSTC_ORIGINAL)'
15# using a file containing the string so I don't have problems with escaping quotes and spaces 
16	cat '$(TMPDIR)/my_crate_name.pdb' | grep -f 'stringlist.txt'