]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix issue to handle the -arch compiler option with arg
authorDavid Givone <david@givone.net>
Sun, 2 Sep 2012 22:49:12 +0000 (15:49 -0700)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 13 Sep 2012 18:45:27 +0000 (20:45 +0200)
ccache was logging a warning on Mac since the -arch option always has a
argument.

compopt.c

index 908302e0a57b88048c257399c016c6b50bc43e20..ebdcc39e0d5ead753fe0b50d9f07c3f65bb6327c 100644 (file)
--- a/compopt.c
+++ b/compopt.c
@@ -52,6 +52,7 @@ static const struct compopt compopts[] = {
        {"-Xclang",         TAKES_ARG},
        {"-Xlinker",        TAKES_ARG},
        {"-Xpreprocessor",  TOO_HARD_DIRECT | TAKES_ARG},
+       {"-arch",           TAKES_ARG},
        {"-aux-info",       TAKES_ARG},
        {"-b",              TAKES_ARG},
        {"-frepo",          TOO_HARD},