Issue #2165 - Disable LNK4217 and LNK4286 warnings when linking ICU as they're too spammy.

This commit is contained in:
Job Bautista 2023-03-26 13:14:10 +08:00 committed by roytam1
commit f09b0002ee

View file

@ -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
]