Skip to content

Commit

Permalink
Bug 1394734 - Replace CONFIG['CLANG*'] by CONFIG['CC_TYPE'] r=glandium
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: HbF5oT5HW6f

--HG--
extra : rebase_source : eca479b6ae4bff7f600d1cdb39e11ac2057e4e79
  • Loading branch information
sylvestre committed Dec 7, 2017
1 parent 5de63ef commit 4591d82
Show file tree
Hide file tree
Showing 65 changed files with 103 additions and 103 deletions.
2 changes: 1 addition & 1 deletion accessible/atk/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if CONFIG['MOZ_ENABLE_DBUS']:

include('/ipc/chromium/chromium-config.mozbuild')

if CONFIG['CLANG_CXX'] or CONFIG['CC_TYPE'] in ('clang', 'gcc'):
if CONFIG['CC_TYPE'] == 'clang' or CONFIG['CC_TYPE'] in ('clang', 'gcc'):
# Used in G_DEFINE_TYPE_EXTENDED macro, probably fixed in newer glib /
# gobject headers. See bug 1243331 comment 3.
CXXFLAGS += [
Expand Down
2 changes: 1 addition & 1 deletion accessible/interfaces/gecko/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ FINAL_LIBRARY = 'xul'
# #endif !_MIDL_USE_GUIDDEF_
#
# which clang-cl complains about. MSVC doesn't, so turn this warning off.
if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
CFLAGS += ['-Wno-extra-tokens']
2 changes: 1 addition & 1 deletion accessible/interfaces/ia2/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ RCINCLUDE = 'IA2Marshal.rc'
# #endif !_MIDL_USE_GUIDDEF_
#
# which clang-cl complains about. MSVC doesn't, so turn this warning off.
if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
CXXFLAGS += ['-Wno-extra-tokens']
2 changes: 1 addition & 1 deletion accessible/interfaces/msaa/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ RCINCLUDE = 'AccessibleMarshal.rc'
# #endif !_MIDL_USE_GUIDDEF_
#
# which clang-cl complains about. MSVC doesn't, so turn this warning off.
if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
CFLAGS += ['-Wno-extra-tokens']
2 changes: 1 addition & 1 deletion accessible/windows/ia2/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ FINAL_LIBRARY = 'xul'
# #endif !_MIDL_USE_GUIDDEF_
#
# which clang-cl complains about. MSVC doesn't, so turn this warning off.
if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
CXXFLAGS += ['-Wno-extra-tokens']

include('/ipc/chromium/chromium-config.mozbuild')
2 changes: 1 addition & 1 deletion accessible/windows/msaa/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ LOCAL_INCLUDES += [
# #endif !_MIDL_USE_GUIDDEF_
#
# which clang-cl complains about. MSVC doesn't, so turn this warning off.
if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
CXXFLAGS += ['-Wno-extra-tokens']

include('/ipc/chromium/chromium-config.mozbuild')
Expand Down
2 changes: 1 addition & 1 deletion build/gyp.mozbuild
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ gyp_vars.update({
'include_pulse_audio': 1 if CONFIG['MOZ_PULSEAUDIO'] else 0,
# basic stuff for everything
'include_internal_video_render': 0,
'clang': 1 if CONFIG['CLANG_CXX'] else 0,
'clang': 1 if CONFIG['CC_TYPE'] == 'clang' else 0,
'clang_use_chrome_plugins': 0,
'enable_protobuf': 0,
'include_tests': 0,
Expand Down
2 changes: 1 addition & 1 deletion build/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ FINAL_TARGET_PP_FILES += ['.gdbinit_python.in']
OBJDIR_FILES += ['!/dist/bin/.gdbinit_python']

# Install the clang-cl runtime library for ASAN next to the binaries we produce.
if CONFIG['MOZ_ASAN'] and CONFIG['CLANG_CL']:
if CONFIG['MOZ_ASAN'] and CONFIG['CC_TYPE'] == 'clang-cl':
FINAL_TARGET_FILES += ['%' + CONFIG['MOZ_CLANG_RT_ASAN_LIB_PATH']]

if CONFIG['LLVM_SYMBOLIZER']:
Expand Down
4 changes: 2 additions & 2 deletions config/external/ffi/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ else:
else:
DEFINES['EH_FRAME_FLAGS'] = '"a"'

if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
ASFLAGS += ['-clang-cl']

# Common source files.
Expand All @@ -76,7 +76,7 @@ else:
ffi_srcs = ()
if CONFIG['FFI_TARGET'] == 'ARM':
ffi_srcs = ('sysv.S', 'ffi.c')
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
ASFLAGS += ['-no-integrated-as']
elif CONFIG['FFI_TARGET'] == 'AARCH64':
ffi_srcs = ('sysv.S', 'ffi.c')
Expand Down
4 changes: 2 additions & 2 deletions config/external/icu/defs.mozbuild
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ AllowCompilerWarnings()

# We allow compiler warnings, but we can at least cut down on spammy
# warnings that get triggered for every file.
if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
CFLAGS += [
'-Wno-macro-redefined',
'-Wno-microsoft-include',
Expand All @@ -47,7 +47,7 @@ if CONFIG['CLANG_CL']:
'-Wno-microsoft-include',
]

if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl') and not CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl') and CONFIG['CC_TYPE'] != 'clang-cl':
CFLAGS += [
'-wd4005', # 'WIN32_LEAN_AND_MEAN' : macro redefinition
'-wd4996', # The compiler encountered a deprecated declaration.
Expand Down
2 changes: 1 addition & 1 deletion devtools/shared/heapsnapshot/tests/gtest/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):

# THE MOCK_METHOD2 macro from gtest triggers this clang warning and it's hard
# to work around, so we just ignore it.
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += ['-Wno-inconsistent-missing-override']
# Workaround bug 1142396. Suppress the warning from gmock library for clang.
CXXFLAGS += ['-Wno-null-dereference']
Expand Down
2 changes: 1 addition & 1 deletion dom/canvas/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ SOURCES += [
]

# Suppress warnings from third-party code.
if CONFIG['CLANG_CXX'] or CONFIG['CC_TYPE'] in ('clang', 'gcc'):
if CONFIG['CC_TYPE'] == 'clang' or CONFIG['CC_TYPE'] in ('clang', 'gcc'):
SOURCES['MurmurHash3.cpp'].flags += ['-Wno-implicit-fallthrough']

LOCAL_INCLUDES += [
Expand Down
2 changes: 1 addition & 1 deletion dom/media/gmp/widevine-adapter/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ LOCAL_INCLUDES += [
'/dom/media/gmp',
]

if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += ['-Wno-error=shadow']

include('/ipc/chromium/chromium-config.mozbuild')
2 changes: 1 addition & 1 deletion dom/media/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ SOURCES += [

# Some codec-related code uses multi-character constants, which GCC and clang
# warn about. Suppress turning this warning into an error.
if CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CC_TYPE'] == 'clang-cl':
SOURCES['DecoderTraits.cpp'].flags += ['-Wno-error=multichar']

EXTRA_COMPONENTS += [
Expand Down
2 changes: 1 addition & 1 deletion dom/media/mp4/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ elif CONFIG['CC_TYPE'] in ('clang', 'gcc'):
'-Wno-sign-compare',
'-Wno-unused',
]
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += [
'-Wno-mismatched-tags',
'-Wno-tautological-constant-out-of-range-compare',
Expand Down
2 changes: 1 addition & 1 deletion dom/media/platforms/agnostic/bytestreams/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ elif CONFIG['CC_TYPE'] in ('clang', 'gcc'):
'-Wno-sign-compare',
'-Wno-unused',
]
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += [
'-Wno-mismatched-tags',
'-Wno-tautological-constant-out-of-range-compare',
Expand Down
2 changes: 1 addition & 1 deletion dom/media/platforms/ffmpeg/ffmpeg57/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ LOCAL_INCLUDES += [

if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += [ '-Wno-deprecated-declarations' ]
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += [
'-Wno-unknown-attributes',
]
Expand Down
2 changes: 1 addition & 1 deletion dom/media/platforms/ffmpeg/ffvpx/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if CONFIG['OS_ARCH'] == 'WINNT':

if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += [ '-Wno-deprecated-declarations' ]
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += [
'-Wno-unknown-attributes',
]
Expand Down
2 changes: 1 addition & 1 deletion dom/media/platforms/ffmpeg/libav53/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ LOCAL_INCLUDES += [

FINAL_LIBRARY = 'xul'

if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += [
'-Wno-unknown-attributes',
]
2 changes: 1 addition & 1 deletion dom/media/platforms/ffmpeg/libav54/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ LOCAL_INCLUDES += [

FINAL_LIBRARY = 'xul'

if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += [
'-Wno-unknown-attributes',
]
2 changes: 1 addition & 1 deletion dom/media/platforms/ffmpeg/libav55/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ LOCAL_INCLUDES += [

if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += [ '-Wno-deprecated-declarations' ]
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += [
'-Wno-unknown-attributes',
]
Expand Down
2 changes: 1 addition & 1 deletion dom/media/platforms/omx/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):

if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
# Avoid warnings from third-party code that we can not modify.
if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
CXXFLAGS += ['-Wno-invalid-source-encoding']
else:
CXXFLAGS += ['-validate-charset-']
2 changes: 1 addition & 1 deletion dom/media/webrtc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ include('/ipc/chromium/chromium-config.mozbuild')
# - about attributes on forward declarations for types that are already
# defined, which complains about important MOZ_EXPORT attributes for
# android API types
if CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CC_TYPE'] == 'clang-cl':
CXXFLAGS += [
'-Wno-error=attributes',
'-Wno-error=shadow',
Expand Down
2 changes: 1 addition & 1 deletion extensions/spellcheck/hunspell/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ AllowCompilerWarnings()

include('/ipc/chromium/chromium-config.mozbuild')

if CONFIG['CLANG_CXX'] or CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang' or CONFIG['CC_TYPE'] == 'clang-cl':
CXXFLAGS += [
'-Wno-implicit-fallthrough',
]
4 changes: 2 additions & 2 deletions gfx/2d/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ if CONFIG['MOZ_ENABLE_SKIA']:
'PathSkia.cpp',
'SourceSurfaceSkia.cpp',
]
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
# Suppress warnings from Skia header files.
SOURCES['DrawTargetSkia.cpp'].flags += ['-Wno-implicit-fallthrough']
SOURCES['PathSkia.cpp'].flags += ['-Wno-implicit-fallthrough']
Expand Down Expand Up @@ -196,7 +196,7 @@ SOURCES += [
'InlineTranslator.cpp',
]

if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
SOURCES['Factory.cpp'].flags += ['-Wno-implicit-fallthrough']

if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
Expand Down
2 changes: 1 addition & 1 deletion gfx/angle/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
'-Wno-unknown-pragmas',
'-Wno-unreachable-code',
]
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += [
'-Wno-implicit-fallthrough',
'-Wno-inconsistent-missing-override',
Expand Down
4 changes: 2 additions & 2 deletions gfx/angle/src/libANGLE/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
'-Wno-unknown-pragmas',
'-Wno-unreachable-code',
]
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += [
'-Wno-inconsistent-missing-override',
'-Wno-unused-private-field',
Expand All @@ -359,7 +359,7 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
'-Wno-shadow-local',
]

if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl') and not CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl') and CONFIG['CC_TYPE'] != 'clang-cl':
CXXFLAGS += [
'-wd4018', # '>' : signed/unsigned mismatch
'-wd4530', # C++ exception handler used, without /EHsc
Expand Down
2 changes: 1 addition & 1 deletion gfx/angle/src/libEGL/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
'-Wno-unknown-pragmas',
'-Wno-unreachable-code',
]
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += [
'-Wno-inconsistent-missing-override',
'-Wno-unused-private-field',
Expand Down
2 changes: 1 addition & 1 deletion gfx/angle/src/libGLESv2/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
'-Wno-unknown-pragmas',
'-Wno-unreachable-code',
]
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
CXXFLAGS += [
'-Wno-inconsistent-missing-override',
'-Wno-unused-private-field',
Expand Down
6 changes: 3 additions & 3 deletions gfx/cairo/cairo/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ if CONFIG['MOZ_TREE_FREETYPE']:
DEFINES['FT_LCD_FILTER_H'] = '%s/modules/freetype2/include/freetype/ftlcdfil.h' % TOPSRCDIR

# Suppress warnings in third-party code.
if CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CC_TYPE'] == 'clang-cl':
CFLAGS += [
'-Wno-enum-compare',
'-Wno-int-to-pointer-cast',
Expand All @@ -229,7 +229,7 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CLANG_CL']:
'-Wno-unused-variable',
'-Wno-error=uninitialized',
]
if CONFIG['CLANG_CXX'] or CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang' or CONFIG['CC_TYPE'] == 'clang-cl':
CFLAGS += [
'-Wno-absolute-value',
'-Wno-deprecated-register',
Expand All @@ -243,7 +243,7 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CLANG_CL']:
else:
CFLAGS += ['-Wno-unused-but-set-variable']

if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl') and not CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl') and CONFIG['CC_TYPE'] != 'clang-cl':
CFLAGS += [
'-wd4005', # 'WIN32_LEAN_AND_MEAN' : macro redefinition
'-wd4018', # '>' : signed/unsigned mismatch
Expand Down
10 changes: 5 additions & 5 deletions gfx/cairo/libpixman/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if CONFIG['OS_ARCH'] != 'Darwin' and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
'pixman-arm-simd-asm-scaled.S',
'pixman-arm-simd-asm.S',
]
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
ASFLAGS += [
'-no-integrated-as',
]
Expand Down Expand Up @@ -137,25 +137,25 @@ if use_arm_neon_gcc:
SOURCES['pixman-arm-neon.c'].flags += CONFIG['NEON_FLAGS']

# Suppress warnings in third-party code.
if CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CC_TYPE'] == 'clang-cl':
CFLAGS += [
'-Wno-address',
'-Wno-missing-field-initializers',
'-Wno-sign-compare',
'-Wno-incompatible-pointer-types',
'-Wno-unused', # too many unused warnings; ignore
]
if CONFIG['CLANG_CXX'] or CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang' or CONFIG['CC_TYPE'] == 'clang-cl':
CFLAGS += [
'-Wno-incompatible-pointer-types',
'-Wno-tautological-compare',
'-Wno-tautological-constant-out-of-range-compare',
]
if CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang-cl':
CFLAGS += [
'-Wno-unused-variable',
]
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl') and not CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl') and CONFIG['CC_TYPE'] != 'clang-cl':
CFLAGS += [
'-wd4047', # different levels of indirection
'-wd4101', # unreferenced local variable
Expand Down
2 changes: 1 addition & 1 deletion gfx/gl/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ if CONFIG['MOZ_ENABLE_SKIA_GPU']:
SOURCES += [
'SkiaGLGlue.cpp',
]
if CONFIG['CLANG_CXX']:
if CONFIG['CC_TYPE'] == 'clang':
# Suppress warnings from Skia header files.
SOURCES['SkiaGLGlue.cpp'].flags += ['-Wno-implicit-fallthrough']

Expand Down
8 changes: 4 additions & 4 deletions gfx/skia/generate_mozbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
# We should autogenerate these SSE related flags.
if CONFIG['INTEL_ARCHITECTURE'] and (CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CLANG_CL']):
if CONFIG['INTEL_ARCHITECTURE'] and (CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CC_TYPE'] == 'clang-cl'):
SOURCES['skia/src/opts/SkBitmapProcState_opts_SSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
SOURCES['skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp'].flags += ['-mssse3']
SOURCES['skia/src/opts/SkBlitRow_opts_SSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
Expand Down Expand Up @@ -113,7 +113,7 @@
DEFINES['SK_CAN_USE_DLOPEN'] = 0
# Suppress warnings in third-party code.
if CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc') or CONFIG['CC_TYPE'] == 'clang-cl':
CXXFLAGS += [
'-Wno-deprecated-declarations',
'-Wno-overloaded-virtual',
Expand All @@ -122,12 +122,12 @@
'-Wno-unreachable-code',
'-Wno-unused-function',
]
if CONFIG['CC_TYPE'] in ('clang', 'gcc') and not CONFIG['CLANG_CXX'] and not CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] in ('clang', 'gcc') and CONFIG['CC_TYPE'] != 'clang' and CONFIG['CC_TYPE'] != 'clang-cl':
CXXFLAGS += [
'-Wno-logical-op',
'-Wno-maybe-uninitialized',
]
if CONFIG['CLANG_CXX'] or CONFIG['CLANG_CL']:
if CONFIG['CC_TYPE'] == 'clang' or CONFIG['CC_TYPE'] == 'clang-cl':
CXXFLAGS += [
'-Wno-implicit-fallthrough',
'-Wno-inconsistent-missing-override',
Expand Down
Loading

0 comments on commit 4591d82

Please sign in to comment.