Merge "Add option to allow unknown warning options"
diff --git a/cc/config/global.go b/cc/config/global.go
index a40f5ea..26d93ab 100644
--- a/cc/config/global.go
+++ b/cc/config/global.go
@@ -375,6 +375,10 @@
 			flags = append(flags, llvmNextExtraCommonGlobalCflags...)
 		}
 
+		if ctx.Config().IsEnvTrue("ALLOW_UNKNOWN_WARNING_OPTION") {
+			flags = append(flags, "-Wno-error=unknown-warning-option")
+		}
+
 		return strings.Join(flags, " ")
 	})