Chromium Code Reviews| Index: third_party/mesa/BUILD.gn |
| diff --git a/third_party/mesa/BUILD.gn b/third_party/mesa/BUILD.gn |
| index acdca8616273962c6b81f55e89cd44e26f4465cd..9ff2ce490e149b00274099fecffddc59958621ab 100644 |
| --- a/third_party/mesa/BUILD.gn |
| +++ b/third_party/mesa/BUILD.gn |
| @@ -3,6 +3,9 @@ |
| # found in the LICENSE file. |
| import("//build/config/ui.gni") |
| +if (is_posix) { |
|
viettrungluu
2015/09/15 23:48:23
&& !is_clang?
Or maybe even just |if (!is_clang)|
cdotstout
2015/09/16 22:01:00
Copied this from build/config/compiler/BUILD.gn so
|
| + import("//build/config/gcc/gcc_version.gni") |
| +} |
| config("mesa_headers_config") { |
| include_dirs = [ "src/include" ] |
| @@ -80,6 +83,8 @@ config("mesa_internal_config") { |
| if (is_clang) { |
| cflags += [ "-Wno-tautological-constant-out-of-range-compare" ] |
| + } else if (gcc_version >= 48) { |
| + cflags += [ "-Wno-narrowing" ] |
| } |
| if (is_android) { |