Allow goog.DEBUG to be treated as an unknown so the default can be set to False in the recommended flags.
@@ -52,7 +52,8 @@ class ProcessDefines implements CompilerPass {
* Defines in this set will not be flagged with "unknown define" warnings. There are legacy flags
* that always set these defines, even when they might not be in the binary.
*/
- private static final ImmutableSet<String> KNOWN_DEFINES = ImmutableSet.of("COMPILED");
+ private static final ImmutableSet<String> KNOWN_DEFINES =
+ ImmutableSet.of("COMPILED", "goog.DEBUG");
private final AbstractCompiler compiler;
private final Map<String, Node> dominantReplacements;
