summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJob Bautista <jobbautista9@aol.com>2023-03-26 13:14:10 +0800
committerJob Bautista <jobbautista9@aol.com>2023-03-26 13:14:10 +0800
commit86b77f1284be339b6672f6ef9dcc342a3d6e758c (patch)
tree2651c28103387e27c75054b3e06a72c2b947a57e /config
parent19b76a68accfc4fa811e911b71e841b3e1919344 (diff)
downloaduxp-86b77f1284be339b6672f6ef9dcc342a3d6e758c.tar.gz
Issue #2165 - Disable LNK4217 and LNK4286 warnings when linking ICU as they're too spammy.
Diffstat (limited to 'config')
-rw-r--r--config/external/icu/moz.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/external/icu/moz.build b/config/external/icu/moz.build
index e403f17c78..6b0cc1a332 100644
--- a/config/external/icu/moz.build
+++ b/config/external/icu/moz.build
@@ -17,3 +17,9 @@ else:
USE_LIBS += ['icudata']
SharedLibrary('icu')
SHARED_LIBRARY_NAME = 'icu' + CONFIG['MOZ_ICU_VERSION']
+ # Linking ICU gets too spammy in warnings with MSVC
+ if CONFIG['_MSC_VER'] and not CONFIG['CLANG_CL']:
+ LDFLAGS += [
+ '/IGNORE:4217', # symbol defined in $1.obj is defined in $2.obj
+ '/IGNORE:4286', # similar with LNK4217
+ ]