File tree 3 files changed +21
-4
lines changed
test/run-make/multiple-emits
3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -1358,10 +1358,9 @@ pub fn build_output_filenames(input: &Input,
1358
1358
. values ( )
1359
1359
. filter ( |a| a. is_none ( ) )
1360
1360
. count ( ) ;
1361
- let ofile = if unnamed_output_types > 1 &&
1362
- sess. opts . output_types . contains_key ( & OutputType :: Exe ) {
1363
- sess. warn ( "ignoring specified output filename for 'link' output because multiple \
1364
- outputs were requested") ;
1361
+ let ofile = if unnamed_output_types > 1 {
1362
+ sess. warn ( "due to multiple output types requested, the explicitly specified \
1363
+ output file name will be adapted for each output type") ;
1365
1364
None
1366
1365
} else {
1367
1366
Some ( out_file. clone ( ) )
Original file line number Diff line number Diff line change
1
+ -include ../tools.mk
2
+
3
+ all :
4
+ $(RUSTC ) foo.rs --emit=asm,llvm-ir -o $(TMPDIR ) /out 2>&1
5
+ rm $(TMPDIR ) /out.ll $(TMPDIR ) /out.s
6
+ $(RUSTC ) foo.rs --emit=asm,llvm-ir -o $(TMPDIR ) /out2.ext 2>&1
7
+ rm $(TMPDIR ) /out2.ll $(TMPDIR ) /out2.s
Original file line number Diff line number Diff line change
1
+ // Copyright 2014 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