commit | 8bca601fd6355e94d3727a3d1029640eec5cd5c6 | [log] [tgz] |
---|---|---|
author | Jason Simmons <jsimmons@google.com> | Wed Jun 19 16:36:45 2019 -0700 |
committer | Jason Simmons <jsimmons@google.com> | Wed Jun 19 16:38:14 2019 -0700 |
tree | 1e7872cb7d89eb2077049cddce46fee32ab7d632 | |
parent | 5bd5afae32b8f5c11b7c9e7200117bb04f010ed9 [diff] |
Restrict Clang-specific compile flags Change-Id: Ie97e974dfc86efdbe58f188847d3fb962cbe7a54
diff --git a/BUILD.gn b/BUILD.gn index 96e24183..357e358 100644 --- a/BUILD.gn +++ b/BUILD.gn
@@ -5,10 +5,12 @@ config("wuffs_public") { include_dirs = [ "release/c" ] - cflags = [ - "-Wno-unused-function", - "-Wno-c++11-narrowing", - ] + if (is_clang) { + cflags += [ + "-Wno-unused-function", + "-Wno-c++11-narrowing", + ] + } } source_set("wuffs") {