Skip to content

Commit

Permalink
Sync compiler warning flags from master.
Browse files Browse the repository at this point in the history
  • Loading branch information
psychonic committed Mar 17, 2016
1 parent a70fd23 commit ff9eac3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion AMBuildScript
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,19 @@ class MMSConfig(object):
'-Wno-non-virtual-dtor',
'-Wno-overloaded-virtual',
]
if (cxx.name == 'gcc' and cxx.majorVersion >= 4 and cxx.minorVersion >= 7) or \
if (cxx.name == 'gcc' and cfg.version >= 'gcc-4.7') or \
(cxx.name == 'clang' and cxx.majorVersion >= 3):
cfg.cxxflags += ['-Wno-delete-non-virtual-dtor']
if cxx.name == 'gcc':
cfg.cflags += ['-mfpmath=sse']
if cxx.name == 'clang':
if cfg.version >= 'clang-3.6':
cfg.cxxflags += ['-Wno-inconsistent-missing-override']
cfg.cxxflags += ['-Wno-implicit-exception-spec-mismatch']
if cfg.version >= 'apple-clang-5.1' or cfg.version >= 'clang-3.4':
cfg.cxxflags += ['-Wno-deprecated-register']
else:
cfg.cxxflags += ['-Wno-deprecated']

elif cxx.name == 'msvc':
if builder.options.debug == '1':
Expand Down

0 comments on commit ff9eac3

Please sign in to comment.