commit | 485127c76e8119587d88db2d73c4c92df2dfbd03 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Thu Jul 21 12:23:28 2022 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Jul 21 12:23:28 2022 +0000 |
tree | b6b31b1ad53c6ddd71eae1621366fde010354bab | |
parent | 69d09f49ec073886edcc77ac9764020edc7b6009 [diff] | |
parent | f7f69e4992e7cbd326b7727a504112136e6f641c [diff] |
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, " ") })