Warn when -C extra-filename flag is used with -o

This commit is contained in:
varkor 2018-01-29 12:50:36 +00:00
parent d97da7d536
commit 9a2f02df66

View file

@ -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("");