diff options
author | Matthias Kretz <kretz@kde.org> | 2015-10-30 16:53:37 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2015-10-30 17:18:10 +0100 |
commit | 7fcc18aac5751bb881926b64ae2304490a2f3049 (patch) | |
tree | b64719a3c768ebc9b7a3429abc9914918f6a77c5 /compopt.c | |
parent | 5d8ba5552951dc0d889f7bbf068b54cb797bb2fc (diff) | |
download | ccache-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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}, }; |