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:
Nathan Froyd 2016-08-25 17:13:51 -04:00
parent 6bc66b6a6f
commit 3369462f39

View File

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