summaryrefslogtreecommitdiff
path: root/compopt.c
diff options
context:
space:
mode:
authorMatthias Kretz <kretz@kde.org>2015-10-30 16:53:37 +0100
committerJoel Rosdahl <joel@rosdahl.net>2015-10-30 17:18:10 +0100
commit7fcc18aac5751bb881926b64ae2304490a2f3049 (patch)
treeb64719a3c768ebc9b7a3429abc9914918f6a77c5 /compopt.c
parent5d8ba5552951dc0d889f7bbf068b54cb797bb2fc (diff)
downloadccache-7fcc18aac5751bb881926b64ae2304490a2f3049.tar.gz
Pass -stdlib= only to preprocessor
Clang warns about an unused -stdlib=libc++ argument if the argument is passed to the second clang invocation. The -stdlib= argument is only necessary on preprocessing (to set the system include paths) and on linking (which is not cached anyway) Signed-off-by: Matthias Kretz <kretz@kde.org>
Diffstat (limited to 'compopt.c')
-rw-r--r--compopt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compopt.c b/compopt.c
index e5b3e0a3..86dd416a 100644
--- a/compopt.c
+++ b/compopt.c
@@ -78,6 +78,7 @@ static const struct compopt compopts[] = {
{"-nostdinc++", AFFECTS_CPP},
{"-remap", AFFECTS_CPP},
{"-save-temps", TOO_HARD},
+ {"-stdlib=", AFFECTS_CPP | TAKES_CONCAT_ARG},
{"-trigraphs", AFFECTS_CPP},
{"-u", TAKES_ARG},
};