File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-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,23 @@ 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
+ # Backend-independent, printed by rustc_driver_impl/src/lib.rs
16
+ $(RUSTC ) --target x86_64-pc-windows-gnu --print cfg=$(TMPDIR ) /cfg.txt
17
+ $(CGREP ) windows < $(TMPDIR ) /cfg.txt
18
+
19
+ # Printed from CodegenBackend trait impl in rustc_codegen_llvm/src/lib.rs
20
+ $(RUSTC) --print relocation-models=$(TMPDIR)/relocation-models.txt
21
+ $(CGREP) dynamic-no-pic < $(TMPDIR)/relocation-models.txt
22
+
23
+ # Printed by compiler/rustc_codegen_llvm/src/llvm_util.rs
24
+ $(RUSTC) --target wasm32-unknown-unknown --print target-features=$(TMPDIR)/target-features.txt
25
+ $(CGREP) reference-types < $(TMPDIR)/target-features.txt
26
+
27
+ # Printed by C++ code in rustc_llvm/llvm-wrapper/PassWrapper.cpp
28
+ $(RUSTC) --target x86_64-pc-windows-gnu --print target-cpus=$(TMPDIR)/target-cpus.txt
29
+ $(CGREP) native < $(TMPDIR)/target-cpus.txt
30
+
14
31
ifdef IS_WINDOWS
15
32
default :
16
33
$(RUSTC ) --print cfg | $(CGREP ) windows
You can’t perform that action at this time.
0 commit comments