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