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 2
2
3
3
include ../tools.mk
4
4
5
- all : default
5
+ all : default output_to_file
6
6
$(RUSTC ) --target x86_64-pc-windows-gnu --print cfg | $(CGREP ) windows
7
7
$(RUSTC ) --target x86_64-pc-windows-gnu --print cfg | $(CGREP ) x86_64
8
8
$(RUSTC ) --target i686-pc-windows-msvc --print cfg | $(CGREP ) msvc
@@ -11,6 +11,14 @@ all: default
11
11
$(RUSTC ) --target arm-unknown-linux-gnueabihf --print cfg | $(CGREP ) target_abi=
12
12
$(RUSTC ) --target arm-unknown-linux-gnueabihf --print cfg | $(CGREP ) eabihf
13
13
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
+
14
22
ifdef IS_WINDOWS
15
23
default :
16
24
$(RUSTC ) --print cfg | $(CGREP ) windows
You can’t perform that action at this time.
0 commit comments