From: Joel Rosdahl Date: Sun, 9 May 2010 11:08:06 +0000 (+0200) Subject: Bail out early on -arch since it's too hard X-Git-Tag: v3.0pre1~23 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=d4a20d5a3a2751041faaeb992918bfa1ec294d47;p=thirdparty%2Fccache.git Bail out early on -arch since it's too hard --- diff --git a/NEWS.txt b/NEWS.txt index 74d3f5877..6108935c7 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -125,9 +125,10 @@ Bug fixes hash collisions. For instance, the compiler options `-X -Y` and `-X-Y` previously contributed equally to the hash sum. - - Bail out on too hard compiler options `--coverage`, `-fprofile-arcs`, - `-fprofile-generate`, `-fprofile-use`, `-ftest-coverage` and - `-save-temps`. Also bail out on `@file` style options. + - Bail out on too hard compiler options `--coverage`, `-arch`, + `-fprofile-arcs`, `-fprofile-generate`, `-fprofile-use`, + `-ftest-coverage` and `-save-temps`. Also bail out on `@file` style + options. - `-MD`/`-MMD` options without `-MT`/`-MF` are now handled correctly. diff --git a/ccache.c b/ccache.c index cbbfdc8ec..de08a5c8e 100644 --- a/ccache.c +++ b/ccache.c @@ -1231,6 +1231,7 @@ static void process_args(int argc, char **argv, ARGS **preprocessor_args, strcmp(argv[i], "--coverage") == 0 || strcmp(argv[i], "-M") == 0 || strcmp(argv[i], "-MM") == 0 || + strcmp(argv[i], "-arch") == 0 || strcmp(argv[i], "-fbranch-probabilities") == 0 || strcmp(argv[i], "-fprofile-arcs") == 0 || strcmp(argv[i], "-fprofile-generate") == 0 ||