mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00
Bug 1298466 - avoid some spammy warnings for ICU when compiling with clang-cl; r=ted.mielczarek
We don't need to hear about ICU redefining macros we set up or about include paths that are Microsoft-specific, but still resolve to where they need to go. MozReview-Commit-ID: D9lFiNCvkOh --HG-- extra : rebase_source : 66848780bb4e2473a7f1df9a621f0b2f54171e70
This commit is contained in:
parent
6bc66b6a6f
commit
3369462f39
12
config/external/icu/defs.mozbuild
vendored
12
config/external/icu/defs.mozbuild
vendored
@ -36,5 +36,17 @@ elif CONFIG['OS_TARGET'] == 'WINNT':
|
||||
DISABLE_STL_WRAPPING = True
|
||||
ALLOW_COMPILER_WARNINGS = True
|
||||
|
||||
# We allow compiler warnings, but we can at least cut down on spammy
|
||||
# warnings that get triggered for every file.
|
||||
if CONFIG['CLANG_CL']:
|
||||
CFLAGS += [
|
||||
'-Wno-macro-redefined',
|
||||
'-Wno-microsoft-include',
|
||||
]
|
||||
CXXFLAGS += [
|
||||
'-Wno-macro-redefined',
|
||||
'-Wno-microsoft-include',
|
||||
]
|
||||
|
||||
if CONFIG['OS_TARGET'] == 'Android' and CONFIG['MOZ_ANDROID_CXX_STL'] == 'mozstlport':
|
||||
LOCAL_INCLUDES += ['/build/gabi++/include']
|
||||
|
Loading…
x
Reference in New Issue
Block a user