зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1090497 - Re-enable warnings as errors on clang-cl. r=froydnj
--HG-- extra : rebase_source : c09366fb93e5b0f72abe1e99d3094e3d96a934fb extra : intermediate-source : 5950c9d63c3b4fd63a25464a7b50944aaec7079f extra : source : ca1b9a2bcc4381795f556fea2fb59066567c30f3
This commit is contained in:
Родитель
b2d2d974d3
Коммит
3b21b7868b
|
@ -114,3 +114,6 @@ include('/ipc/chromium/chromium-config.mozbuild')
|
|||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -70,3 +70,6 @@ include('/ipc/chromium/chromium-config.mozbuild')
|
|||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -98,3 +98,6 @@ if CONFIG['CC_TYPE'] == 'clang-cl':
|
|||
'-Wno-missing-braces',
|
||||
'-Wno-unused-const-variable',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -44,3 +44,6 @@ if CONFIG['CC_TYPE'] == 'clang-cl':
|
|||
'-Wno-missing-braces',
|
||||
'-Wno-unused-const-variable',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -62,3 +62,6 @@ FINAL_LIBRARY = 'xul'
|
|||
|
||||
# Add libFuzzer configuration directives
|
||||
include('/tools/fuzzing/libfuzzer-config.mozbuild')
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -83,3 +83,5 @@ LIBRARY_DEFINES['_UNICODE'] = True
|
|||
LIBRARY_DEFINES['MOZ_NO_MOZALLOC'] = True
|
||||
DisableStlWrapping()
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -55,3 +55,6 @@ if CONFIG['ACCESSIBILITY']:
|
|||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -84,3 +84,6 @@ if CONFIG['CC_TYPE'] == 'clang-cl':
|
|||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -22,3 +22,6 @@ LOCAL_INCLUDES += [
|
|||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -64,3 +64,6 @@ include('/ipc/chromium/chromium-config.mozbuild')
|
|||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -25,3 +25,6 @@ TEST_DIRS += [
|
|||
]
|
||||
|
||||
DisableStlWrapping()
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -15,3 +15,6 @@ LOCAL_INCLUDES += [
|
|||
OS_LIBS += [
|
||||
'ntdll',
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -66,3 +66,6 @@ COMPILE_FLAGS['OS_CFLAGS'] = (
|
|||
['-fsyntax-only', '-Xclang', '-verify', '-ferror-limit=0', '-std=c11',
|
||||
'-Wno-invalid-noreturn']
|
||||
)
|
||||
|
||||
if CONFIG['ENABLE_CLANG_PLUGIN'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -32,3 +32,6 @@ if CONFIG['LLVM_SYMBOLIZER'] and CONFIG['WIN_DIA_SDK_BIN_DIR']:
|
|||
FINAL_TARGET_FILES += [
|
||||
'%%%s/msdia140.dll' % CONFIG['WIN_DIA_SDK_BIN_DIR']
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -510,3 +510,6 @@ counterlist.inputs = ['UseCounters.conf']
|
|||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -51,3 +51,7 @@ MOCHITEST_MANIFESTS += [
|
|||
]
|
||||
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
|
||||
XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
|
||||
|
||||
if (not CONFIG['HAVE_64BIT_BUILD'] and
|
||||
CONFIG['ENABLE_CLANG_PLUGIN'] and CONFIG['CC_TYPE'] == 'clang-cl'):
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -115,3 +115,7 @@ XPIDL_SOURCES += [
|
|||
]
|
||||
|
||||
XPIDL_MODULE = 'dom_indexeddb'
|
||||
|
||||
if (not CONFIG['HAVE_64BIT_BUILD'] and
|
||||
CONFIG['ENABLE_CLANG_PLUGIN'] and CONFIG['CC_TYPE'] == 'clang-cl'):
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -30,3 +30,6 @@ NoVisibilityFlags()
|
|||
# Don't use STL wrappers; this isn't Gecko code
|
||||
DisableStlWrapping()
|
||||
NO_PGO = True
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -148,3 +148,6 @@ LOCAL_INCLUDES += [
|
|||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -88,3 +88,6 @@ FINAL_LIBRARY = 'xul-gtest'
|
|||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow', '-Wno-unused-private-field']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -88,3 +88,6 @@ if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
|||
# 'reinterpret_cast': conversion from 'DWORD' to 'HANDLE' of greater size
|
||||
]
|
||||
DEFINES['__PRETTY_FUNCTION__'] = '__FUNCSIG__'
|
||||
|
||||
if CONFIG['MOZ_ASAN'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1306642
|
||||
|
|
|
@ -92,3 +92,6 @@ CXXFLAGS += CONFIG['TK_CFLAGS']
|
|||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -25,3 +25,8 @@ RCINCLUDE = 'HangUIDlg.rc'
|
|||
OS_LIBS += [
|
||||
'comctl32',
|
||||
]
|
||||
|
||||
if ((CONFIG['MOZ_PGO'] or
|
||||
(not CONFIG['HAVE_64BIT_BUILD'] and CONFIG['ENABLE_CLANG_PLUGIN']))
|
||||
and CONFIG['CC_TYPE'] == 'clang-cl'):
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -155,3 +155,6 @@ if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
|||
|
||||
# 'type cast': conversion from 'unsigned int' to 'HIMC' of greater size
|
||||
CXXFLAGS += ['-wd4312']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -68,3 +68,6 @@ else:
|
|||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -49,3 +49,6 @@ LOCAL_INCLUDES += [
|
|||
|
||||
if CONFIG['ENABLE_TESTS']:
|
||||
DEFINES['DOM_STORAGE_TESTS'] = True
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -30,3 +30,6 @@ BROWSER_CHROME_MANIFESTS += [ 'tests/browser.ini' ]
|
|||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -255,3 +255,5 @@ if CONFIG['MOZ_ENABLE_SKIA_GPU']:
|
|||
'/gfx/skia/skia/src/gpu',
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -166,3 +166,6 @@ LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
|
|||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -583,3 +583,6 @@ if CONFIG['MOZ_ENABLE_SKIA']:
|
|||
UNIFIED_SOURCES += [
|
||||
'composite/PaintCounter.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -293,3 +293,6 @@ DEFINES['GRAPHITE2_STATIC'] = True
|
|||
if CONFIG['CC_TYPE'] == 'clang':
|
||||
# Suppress warnings from Skia header files.
|
||||
SOURCES['gfxPlatform.cpp'].flags += ['-Wno-implicit-fallthrough']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -97,3 +97,6 @@ if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
|||
# ovr_capi_dynamic.h '<unnamed-tag>': Alignment specifier is less than
|
||||
# actual alignment (8), and will be ignored
|
||||
CXXFLAGS += ['-wd4359']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -66,3 +66,6 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gtk3'):
|
|||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -152,3 +152,6 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
|||
|
||||
# Add libFuzzer configuration directives
|
||||
include('/tools/fuzzing/libfuzzer-config.mozbuild')
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -23,3 +23,6 @@ if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
|
|||
'/security/sandbox/chromium',
|
||||
'/security/sandbox/chromium-shim',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -86,3 +86,6 @@ FINAL_LIBRARY = 'xul'
|
|||
|
||||
with Files("**"):
|
||||
BUG_COMPONENT = ("Core", "IPC: MSCOM")
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -37,3 +37,6 @@ FORCE_STATIC_LIB = True
|
|||
# This DLL may be loaded into other processes, so we need static libs for
|
||||
# Windows 7 and Windows 8.
|
||||
USE_STATIC_LIBS = True
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -53,3 +53,6 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
|||
CFLAGS += CONFIG['TK_CFLAGS']
|
||||
CXXFLAGS += CONFIG['TK_CFLAGS']
|
||||
OS_LIBS += CONFIG['TK_LIBS']
|
||||
|
||||
if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -64,3 +64,6 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
|||
|
||||
if CONFIG['NIGHTLY_BUILD']:
|
||||
DEFINES['ENABLE_WASM_GC'] = True
|
||||
|
||||
if CONFIG['MOZ_ASAN'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -75,3 +75,6 @@ if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
|||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -78,3 +78,6 @@ elif CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
|||
CFLAGS += [
|
||||
'-FI', 'stdio.h', # for sprintf() prototype
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -93,3 +93,6 @@ DEFINES['R_DEFINED_UINT8'] = 'uint64_t'
|
|||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -207,6 +207,7 @@
|
|||
# Windows, clang-cl build
|
||||
[ 'clang_cl == 1', {
|
||||
'cflags_mozilla': [
|
||||
'-Wno-error', # workaround for bug 1090497
|
||||
'-Xclang',
|
||||
'-Wall',
|
||||
'-Wno-parentheses',
|
||||
|
|
|
@ -204,6 +204,7 @@
|
|||
# Windows, clang-cl build
|
||||
[ 'clang_cl == 1', {
|
||||
'cflags_mozilla': [
|
||||
'-Wno-error', # workaround for bug 1090497
|
||||
'-Xclang',
|
||||
'-Wall',
|
||||
'-Wno-parentheses',
|
||||
|
|
|
@ -48,3 +48,6 @@ if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
|||
|
||||
# Disable warning for decorated name length exceeded, name was truncated
|
||||
CXXFLAGS += ['-wd4503']
|
||||
|
||||
if CONFIG['MOZ_ASAN'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1306642
|
||||
|
|
|
@ -35,3 +35,6 @@ if CONFIG['OS_TARGET'] == 'Android':
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['MOZ_ASAN'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1306642
|
||||
|
|
|
@ -29,3 +29,6 @@ UNIFIED_SOURCES += [
|
|||
DEFINES['TRACING'] = True
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['MOZ_ASAN'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1306642
|
||||
|
|
|
@ -61,3 +61,6 @@ SOURCES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['ENABLE_CLANG_PLUGIN'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -53,3 +53,6 @@ if CONFIG['MOZ_REPLACE_MALLOC_STATIC']:
|
|||
DEFINES['MOZ_REPLACE_MALLOC_STATIC'] = True
|
||||
|
||||
DisableStlWrapping()
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -36,3 +36,6 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
|||
]
|
||||
|
||||
TEST_DIRS += ['test']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -28,3 +28,6 @@ if CONFIG['OS_TARGET'] == 'Android' and FORCE_SHARED_LIB:
|
|||
DIRS += [
|
||||
'replay',
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -18,3 +18,6 @@ DIRS += [
|
|||
|
||||
if CONFIG['MOZ_DMD']:
|
||||
DIRS += ['dmd']
|
||||
|
||||
if CONFIG['MOZ_DEBUG'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -134,3 +134,6 @@ if CONFIG['MOZ_LINKER'] and CONFIG['CPU_ARCH'] == 'arm':
|
|||
LDFLAGS += ['-Wl,-version-script,%s/arm-eabi-filter' % SRCDIR]
|
||||
|
||||
DIST_INSTALL = True
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -13,3 +13,6 @@ UNIFIED_SOURCES = [
|
|||
|
||||
if CONFIG['COMPILE_ENVIRONMENT']:
|
||||
TEST_HARNESS_FILES.gtest += ['!InjectorDLL.dll']
|
||||
|
||||
if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -21,3 +21,6 @@ if CONFIG['OS_TARGET'] == 'WINNT' and CONFIG['CC_TYPE'] == 'gcc':
|
|||
LDFLAGS += [
|
||||
'-municode',
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -306,3 +306,6 @@ LOCAL_INCLUDES += [
|
|||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -55,3 +55,6 @@ FINAL_LIBRARY = 'xul'
|
|||
|
||||
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||
CXXFLAGS += ['-Wno-error=shadow']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -143,3 +143,6 @@ if CONFIG['OS_TARGET'] == 'Darwin':
|
|||
DEFINES.update(
|
||||
HAS_CONNECTX=True,
|
||||
)
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -54,3 +54,6 @@ if CONFIG['NECKO_WIFI_DBUS']:
|
|||
CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -1044,12 +1044,7 @@ case "$target" in
|
|||
CXXFLAGS="$CXXFLAGS -D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING"
|
||||
LIBS="$LIBS kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib secur32.lib"
|
||||
MOZ_DEBUG_LDFLAGS='-DEBUG -DEBUGTYPE:CV'
|
||||
# -Werror is disabled on clang-cl until bug 1090497 cleans up the noise.
|
||||
if test -n "$CLANG_CL"; then
|
||||
WARNINGS_AS_ERRORS=''
|
||||
else
|
||||
WARNINGS_AS_ERRORS='-WX'
|
||||
fi
|
||||
# Use a higher optimization level for clang-cl, so we can come closer
|
||||
# to MSVC's performance numbers (see bug 1443590).
|
||||
if test -n "$CLANG_CL"; then
|
||||
|
|
|
@ -144,3 +144,6 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -219,3 +219,6 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
|||
CXXFLAGS += [
|
||||
'-Wno-unused-parameter',
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -70,3 +70,6 @@ elif CONFIG['CC_TYPE'] == 'msvc':
|
|||
# declaration of '*' hides class member
|
||||
'-wd4458',
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -10,6 +10,8 @@ if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'):
|
|||
'-Wno-reserved-id-macro', # NSPR and NSS use reserved IDs in their include guards.
|
||||
'-Wno-weak-vtables', # We rely on the linker to merge the duplicate vtables.
|
||||
]
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
elif CONFIG['CC_TYPE'] == 'msvc':
|
||||
CXXFLAGS += [
|
||||
'-sdl', # Enable additional security checks based on Microsoft's SDL.
|
||||
|
|
|
@ -178,3 +178,6 @@ elif CONFIG['OS_ARCH'] == 'WINNT':
|
|||
'-wd4311', # 'reinterpret_cast': pointer truncation from 'LPOVERLAPPED' to 'DWORD'
|
||||
'-wd4312', # 'reinterpret_cast': conversion from 'DWORD' to 'LPOVERLAPPED' of greater size
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -19,3 +19,6 @@ LOCAL_INCLUDES += ['/security/sandbox/chromium-shim']
|
|||
LOCAL_INCLUDES += ['/security/sandbox/chromium']
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -38,3 +38,5 @@ if CONFIG['OS_ARCH'] == 'Linux' or CONFIG['OS_ARCH'] == 'Darwin':
|
|||
'/toolkit/crashreporter/google-breakpad/src',
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -17,3 +17,6 @@ if CONFIG['ENABLE_TESTS'] and CONFIG['CPU_ARCH'] == 'x86_64' and CONFIG['OS_ARCH
|
|||
WIN32_EXE_LDFLAGS += ['-municode']
|
||||
|
||||
NO_PGO = True
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -37,3 +37,6 @@ if not CONFIG['MOZ_DISABLE_PARENTAL_CONTROLS']:
|
|||
LOCAL_INCLUDES += [
|
||||
'../parentalcontrols',
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -98,3 +98,6 @@ with Files('docs/**'):
|
|||
SCHEDULES.exclusive = ['docs']
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -51,3 +51,6 @@ if CONFIG['CC_TYPE'] in ('clang', 'clang-cl', 'gcc'):
|
|||
CXXFLAGS += [
|
||||
'-Wno-implicit-fallthrough',
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -47,3 +47,6 @@ OS_LIBS += [
|
|||
|
||||
with Files('**'):
|
||||
BUG_COMPONENT = ('Toolkit', 'Application Update')
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -33,3 +33,7 @@ FINAL_LIBRARY = 'xul'
|
|||
|
||||
with Files('**'):
|
||||
BUG_COMPONENT = ('Toolkit', 'OS.File')
|
||||
|
||||
if (not CONFIG['HAVE_64BIT_BUILD'] and
|
||||
CONFIG['ENABLE_CLANG_PLUGIN'] and CONFIG['CC_TYPE'] == 'clang-cl'):
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -42,3 +42,6 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
|||
CXXFLAGS += ['-Wno-shadow']
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -36,3 +36,6 @@ else:
|
|||
# Don't use the STL wrappers; we don't link with -lmozalloc, and it really
|
||||
# doesn't matter here anyway.
|
||||
DisableStlWrapping()
|
||||
|
||||
if CONFIG['MOZ_DEBUG'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -98,3 +98,6 @@ with Files('docs/**'):
|
|||
SCHEDULES.exclusive = ['docs']
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -36,3 +36,6 @@ if CONFIG['NIGHTLY_BUILD'] or CONFIG['MOZ_DEBUG']:
|
|||
DEFINES['MOZ_SAFEBROWSING_DUMP_FAILED_UPDATES'] = True
|
||||
|
||||
FINAL_LIBRARY = 'xul-gtest'
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -98,3 +98,6 @@ RCINCLUDE = 'crashreporter.rc'
|
|||
DisableStlWrapping()
|
||||
|
||||
include('/toolkit/crashreporter/crashreporter.mozbuild')
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -61,3 +61,6 @@ Library('breakpad_processor')
|
|||
DisableStlWrapping()
|
||||
|
||||
include('/toolkit/crashreporter/crashreporter.mozbuild')
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -59,3 +59,6 @@ if CONFIG['OS_TARGET'] != 'WINNT':
|
|||
DisableStlWrapping()
|
||||
|
||||
include('/toolkit/crashreporter/crashreporter.mozbuild')
|
||||
|
||||
if CONFIG['MOZ_PGO'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -128,3 +128,6 @@ else:
|
|||
|
||||
with Files('**'):
|
||||
BUG_COMPONENT = ('Toolkit', 'Crash Reporting')
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -58,3 +58,6 @@ NO_PGO = True
|
|||
# Temporary workaround for an issue in upstream breakpad
|
||||
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
||||
CXXFLAGS += ['-wd4334']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
|
@ -50,3 +50,6 @@ SOURCES += [
|
|||
'readstrings.cpp',
|
||||
'updatecommon.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -114,3 +114,5 @@ if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
|||
if CONFIG['CC_TYPE'] == 'gcc':
|
||||
CXXFLAGS += ['-Wno-format-truncation']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -16,3 +16,6 @@ SOURCES += [
|
|||
]
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -19,3 +19,6 @@ FINAL_LIBRARY = 'xul-gtest'
|
|||
|
||||
if CONFIG['GNU_CXX']:
|
||||
CXXFLAGS += ['-Wshadow']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -234,3 +234,6 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
|||
|
||||
if CONFIG['MOZ_IPDL_TESTS']:
|
||||
DEFINES['MOZ_IPDL_TESTS'] = True
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -23,3 +23,6 @@ OS_LIBS += [
|
|||
'shell32',
|
||||
'ws2_32',
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -153,3 +153,6 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
|||
|
||||
with Files('**'):
|
||||
BUG_COMPONENT = ('Core', 'Gecko Profiler')
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -166,3 +166,6 @@ OS_LIBS += [
|
|||
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
||||
# C5038: Suppress initializer list order warnings from wrl.h
|
||||
SOURCES['WindowsUIUtils.cpp'].flags += ['-wd5038']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -217,3 +217,6 @@ LOCAL_INCLUDES += [
|
|||
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
CXXFLAGS += CONFIG['TK_CFLAGS']
|
||||
|
||||
if CONFIG['ENABLE_CLANG_PLUGIN'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -19,3 +19,6 @@ xpcom_gluens_src_lcppsrcs = [
|
|||
xpcom_gluens_src_cppsrcs = [
|
||||
'/xpcom/glue/%s' % s for s in xpcom_gluens_src_lcppsrcs
|
||||
]
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -157,3 +157,6 @@ if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
|
|||
# '_snwprintf' : format string '%s' requires an argument of type 'wchar_t *',
|
||||
# but variadic argument 3 has type 'char16ptr_t'
|
||||
CXXFLAGS += ['-wd4477']
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -119,3 +119,6 @@ LOCAL_INCLUDES += [
|
|||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
||||
if CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
|
@ -7,3 +7,6 @@
|
|||
SimplePrograms([
|
||||
'windbgdlg'
|
||||
])
|
||||
|
||||
if CONFIG['MOZ_DEBUG'] and CONFIG['CC_TYPE'] == 'clang-cl':
|
||||
AllowCompilerWarnings() # workaround for bug 1090497
|
||||
|
|
Загрузка…
Ссылка в новой задаче