From: Matthias Kretz Date: Fri, 30 Oct 2015 15:53:37 +0000 (+0100) Subject: Pass -stdlib= only to preprocessor X-Git-Tag: v3.2.5~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fcc18aac5751bb881926b64ae2304490a2f3049;p=thirdparty%2Fccache.git 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 --- diff --git a/compopt.c b/compopt.c index e5b3e0a39..86dd416ad 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}, };