Skip to content

Commit

Permalink
Mark gcc -M and -MM as TooHard
Browse files Browse the repository at this point in the history
It appears that there are issues with these two as can be
seen in issue #251 .

Synchronizing with https://github.com/ccache/ccache/blob/master/src/compopt.c
  • Loading branch information
CoRfr authored and luser committed Jul 9, 2018
1 parent 5128265 commit c796adc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler/gcc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub enum GCCArgAttribute {

use self::GCCArgAttribute::*;

// Mostly taken from https://github.com/ccache/ccache/blob/master/compopt.c#L32-L84
// Mostly taken from https://github.com/ccache/ccache/blob/master/src/compopt.c#L32-L84
pub static ARGS: [(ArgInfo, GCCArgAttribute); 61] = [
flag!("-", TooHard),
take_arg!("--param", String, Separated, PassThrough),
Expand All @@ -102,10 +102,10 @@ pub static ARGS: [(ArgInfo, GCCArgAttribute); 61] = [
take_arg!("-G", String, Separated, PassThrough),
take_arg!("-I", Path, CanBeSeparated, PreprocessorArgument),
take_arg!("-L", String, Separated, PassThrough),
flag!("-M", NeedDepTarget),
flag!("-M", TooHard),
flag!("-MD", NeedDepTarget),
take_arg!("-MF", Path, Separated, PreprocessorArgument),
flag!("-MM", NeedDepTarget),
flag!("-MM", TooHard),
flag!("-MMD", NeedDepTarget),
flag!("-MP", NeedDepTarget),
take_arg!("-MQ", String, Separated, PreprocessorArgument),
Expand Down

0 comments on commit c796adc

Please sign in to comment.