Skip to content

Commit 3a4d73f

Browse files
committed
Extend testing of --print -o
1 parent df5dede commit 3a4d73f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/run-make/print-cfg/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,22 @@ all: default output_to_file
1212
$(RUSTC) --target arm-unknown-linux-gnueabihf --print cfg | $(CGREP) eabihf
1313

1414
output_to_file:
15+
# Backend-independent, printed by rustc_driver_impl/src/lib.rs
1516
-rm $(TMPDIR)/cfg.txt
1617
$(RUSTC) --target x86_64-pc-windows-gnu --print=cfg -o $(TMPDIR)/cfg.txt
1718
$(CGREP) windows < $(TMPDIR)/cfg.txt
19+
20+
# Printed from CodegenBackend trait impl in rustc_codegen_llvm/src/lib.rs
21+
-rm $(TMPDIR)/cfg.txt
22+
$(RUSTC) --print=relocation-models -o $(TMPDIR)/cfg.txt
23+
$(CGREP) dynamic-no-pic < $(TMPDIR)/cfg.txt
24+
25+
# Printed by compiler/rustc_codegen_llvm/src/llvm_util.rs
26+
-rm $(TMPDIR)/cfg.txt
27+
$(RUSTC) --target wasm32-unknown-unknown --print=target-features -o $(TMPDIR)/cfg.txt
28+
$(CGREP) reference-types < $(TMPDIR)/cfg.txt
29+
30+
# Printed by C++ code in rustc_llvm/llvm-wrapper/PassWrapper.cpp
1831
-rm $(TMPDIR)/cfg.txt
1932
$(RUSTC) --target x86_64-pc-windows-gnu --print=target-cpus -o $(TMPDIR)/cfg.txt
2033
$(CGREP) native < $(TMPDIR)/cfg.txt

0 commit comments

Comments
 (0)