File tree Expand file tree Collapse file tree 3 files changed +21
-4
lines changed
test/run-make/multiple-emits Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -1357,10 +1357,9 @@ pub fn build_output_filenames(input: &Input,
13571357 . values ( )
13581358 . filter ( |a| a. is_none ( ) )
13591359 . count ( ) ;
1360- let ofile = if unnamed_output_types > 1 &&
1361- sess. opts . output_types . contains_key ( & OutputType :: Exe ) {
1362- sess. warn ( "ignoring specified output filename for 'link' output because multiple \
1363- outputs were requested") ;
1360+ let ofile = if unnamed_output_types > 1 {
1361+ sess. warn ( "due to multiple output types requested, the explicitly specified \
1362+ output file name will be adapted for each output type") ;
13641363 None
13651364 } else {
13661365 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