| Index: third_party/freetype/BUILD.gn
|
| diff --git a/third_party/freetype/BUILD.gn b/third_party/freetype/BUILD.gn
|
| index ab0c1b0626edd12200c45d2d51998da08dba3d39..b447cfc5dce63542e576d46cfd3d60c5c0a14981 100644
|
| --- a/third_party/freetype/BUILD.gn
|
| +++ b/third_party/freetype/BUILD.gn
|
| @@ -14,14 +14,11 @@ config("freetype_config") {
|
| config("freetype-warnings") {
|
| cflags = []
|
|
|
| - # The reduction of FreeType files to a minimum triggers -Wunused-function
|
| - # warnings in ftbase.c
|
| - cflags += [ "-Wno-unused-function" ]
|
| -}
|
| -
|
| -config("freetype-visibility") {
|
| - cflags = []
|
| - cflags += [ "-fvisibility=default" ]
|
| + if (is_clang) {
|
| + # The reduction of FreeType files to a minimum triggers -Wunused-function
|
| + # warnings in ftbase.c
|
| + cflags += [ "-Wno-unused-function" ]
|
| + }
|
| }
|
|
|
| component("freetype") {
|
| @@ -79,11 +76,9 @@ component("freetype") {
|
|
|
| public_configs = [ ":freetype_config" ]
|
| configs -= [ "//build/config/compiler:chromium_code" ]
|
| - configs += [
|
| - "//build/config/compiler:no_chromium_code",
|
| - ":freetype-warnings",
|
| - ":freetype-visibility",
|
| - ]
|
| + configs += [ "//build/config/compiler:no_chromium_code" ]
|
| +
|
| + configs += [ ":freetype-warnings" ]
|
|
|
| deps = [
|
| "//third_party/libpng",
|
|
|