File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 22
33include ../tools.mk
44
5- all : default
5+ all : default output_to_file
66 $(RUSTC ) --target x86_64-pc-windows-gnu --print cfg | $(CGREP ) windows
77 $(RUSTC ) --target x86_64-pc-windows-gnu --print cfg | $(CGREP ) x86_64
88 $(RUSTC ) --target i686-pc-windows-msvc --print cfg | $(CGREP ) msvc
@@ -11,6 +11,14 @@ all: default
1111 $(RUSTC ) --target arm-unknown-linux-gnueabihf --print cfg | $(CGREP ) target_abi=
1212 $(RUSTC ) --target arm-unknown-linux-gnueabihf --print cfg | $(CGREP ) eabihf
1313
14+ output_to_file :
15+ -rm $(TMPDIR ) /cfg.txt
16+ $(RUSTC ) --target x86_64-pc-windows-gnu --print=cfg -o $(TMPDIR ) /cfg.txt
17+ $(CGREP ) windows < $(TMPDIR ) /cfg.txt
18+ -rm $(TMPDIR ) /cfg.txt
19+ $(RUSTC ) --target x86_64-pc-windows-gnu --print=target-cpus -o $(TMPDIR ) /cfg.txt
20+ $(CGREP ) native < $(TMPDIR ) /cfg.txt
21+
1422ifdef IS_WINDOWS
1523default :
1624 $(RUSTC ) --print cfg | $(CGREP ) windows
You can’t perform that action at this time.
0 commit comments