Warn when -C extra-filename
flag is used with -o
This commit is contained in:
parent
d97da7d536
commit
9a2f02df66
1 changed files with 3 additions and 0 deletions
|
@ -1378,6 +1378,9 @@ pub fn build_output_filenames(input: &Input,
|
|||
if *odir != None {
|
||||
sess.warn("ignoring --out-dir flag due to -o flag.");
|
||||
}
|
||||
if !sess.opts.cg.extra_filename.is_empty() {
|
||||
sess.warn("ignoring -C extra-filename flag due to -o flag.");
|
||||
}
|
||||
|
||||
let cur_dir = Path::new("");
|
||||
|
||||
|
|
Loading…
Reference in a new issue