From 4ba13fc22d06d742826ef2c9139271b43bca520f Mon Sep 17 00:00:00 2001 From: Refael Ackermann Date: Mon, 3 Sep 2018 17:34:29 -0400 Subject: [PATCH] Normalize out `/[Ww]*` arguments --- clcache/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clcache/__main__.py b/clcache/__main__.py index 8b01591b..e5a70bf3 100644 --- a/clcache/__main__.py +++ b/clcache/__main__.py @@ -488,6 +488,9 @@ def _normalizedCommandLine(cmdline): argsToStrip = ("AI", "C", "E", "P", "FI", "u", "X", "FU", "D", "EP", "Fx", "U", "I") + # Remove all arguments that deal with compiler warnings. + argsToStrip += ("W", "w") + # Also remove the switch for specifying the output file name; we don't # want two invocations which are identical except for the output file # name to be treated differently.