Index: third_party/libxslt/BUILD.gn |
diff --git a/third_party/libxslt/BUILD.gn b/third_party/libxslt/BUILD.gn |
index 1ecb11cf2e2aeee4bcc6f27047788a2c777209e1..6b46db384f56dda1354718f69fa56b5b74767a87 100644 |
--- a/third_party/libxslt/BUILD.gn |
+++ b/third_party/libxslt/BUILD.gn |
@@ -5,19 +5,6 @@ |
config("libxslt_config") { |
defines = [ "LIBXSLT_STATIC" ] |
include_dirs = [ "." ] |
-} |
- |
-config("libxslt_warnings") { |
- if (is_clang) { |
- cflags = [ |
- # libxslt stores a char[3] in a `const unsigned char*`. |
- "-Wno-pointer-sign", |
- |
- # xsltDefaultRegion and xsltCalibrateTimestamps are only |
- # used with certain preprocessor defines set. |
- "-Wno-unused-function", |
- ] |
- } |
} |
static_library("libxslt") { |
@@ -72,11 +59,21 @@ |
"win32/config.h", |
] |
+ config("libxslt_warnings") { |
+ if (is_clang) { |
+ cflags = [ |
+ # libxslt stores a char[3] in a `const unsigned char*`. |
+ "-Wno-pointer-sign", |
+ |
+ # xsltDefaultRegion and xsltCalibrateTimestamps are only |
+ # used with certain preprocessor defines set. |
+ "-Wno-unused-function", |
+ ] |
+ } |
+ } |
configs -= [ "//build/config/compiler:chromium_code" ] |
- configs += [ |
- ":libxslt_warnings", |
- "//build/config/compiler:no_chromium_code", |
- ] |
+ configs += [ "//build/config/compiler:no_chromium_code" ] |
+ configs += [ ":libxslt_warnings" ] |
public_configs = [ ":libxslt_config" ] |
cflags = [] |