]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Bail out early on -arch since it's too hard
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 9 May 2010 11:08:06 +0000 (13:08 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 9 May 2010 11:08:06 +0000 (13:08 +0200)
NEWS.txt
ccache.c

index 74d3f587702c95cac8efed915105c63ce500eb3c..6108935c7103a50a7654e5a00d1743bbd148452d 100644 (file)
--- 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.
 
index cbbfdc8ecbd985ba771eceacddc551558c0b3095..de08a5c8e53b415d0f658b26415a70b753505198 100644 (file)
--- 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 ||