File tree 2 files changed +46
-0
lines changed
src/test/run-make/issue-30063
2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ -include ../tools.mk
2
+
3
+ all :
4
+ rm -f $(TMPDIR ) /foo-output
5
+ $(RUSTC ) -C codegen-units=4 -o $(TMPDIR ) /foo-output foo.rs
6
+ rm $(TMPDIR ) /foo-output
7
+
8
+ rm -f $(TMPDIR)/asm-output
9
+ $(RUSTC) -C codegen-units=4 --emit=asm -o $(TMPDIR)/asm-output foo.rs
10
+ rm $(TMPDIR)/asm-output
11
+
12
+ rm -f $(TMPDIR)/bc-output
13
+ $(RUSTC) -C codegen-units=4 --emit=llvm-bc -o $(TMPDIR)/bc-output foo.rs
14
+ rm $(TMPDIR)/bc-output
15
+
16
+ rm -f $(TMPDIR)/ir-output
17
+ $(RUSTC) -C codegen-units=4 --emit=llvm-ir -o $(TMPDIR)/ir-output foo.rs
18
+ rm $(TMPDIR)/ir-output
19
+
20
+ rm -f $(TMPDIR)/link-output
21
+ $(RUSTC) -C codegen-units=4 --emit=link -o $(TMPDIR)/link-output foo.rs
22
+ rm $(TMPDIR)/link-output
23
+
24
+ rm -f $(TMPDIR)/obj-output
25
+ $(RUSTC) -C codegen-units=4 --emit=obj -o $(TMPDIR)/obj-output foo.rs
26
+ rm $(TMPDIR)/obj-output
27
+
28
+ rm -f $(TMPDIR)/dep-output
29
+ $(RUSTC) -C codegen-units=4 --emit=dep-info -o $(TMPDIR)/dep-output foo.rs
30
+ rm $(TMPDIR)/dep-output
31
+
32
+ # # (This case doesn't work yet, and may be fundamentally wrong-headed anyway.)
33
+ # rm -f $(TMPDIR)/multi-output
34
+ # $(RUSTC) -C codegen-units=4 --emit=asm,obj -o $(TMPDIR)/multi-output foo.rs
35
+ # rm $(TMPDIR)/multi-output
Original file line number Diff line number Diff line change
1
+ // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments