fork/rust

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

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

master
493 B15 linesraw
1include ../tools.mk
2
3# only-linux
4
5all:
6	echo 'fn main(){}' | $(RUSTC) - --emit=link,obj -Csave-temps --target=$(TARGET)
7
8	# Check linked output has a `.comment` section with the expected content.
9	readelf -p '.comment' $(TMPDIR)/rust_out | $(CGREP) -F 'rustc version 1.'
10
11	# Check all object files (including temporary outputs) have a `.comment`
12	# section with the expected content.
13	set -e; for f in $(TMPDIR)/*.o; do \
14		readelf -p '.comment' $$f | $(CGREP) -F 'rustc version 1.'; \
15	done