Fix Linux build (r=dvander).

This commit is contained in:
Scott Ehlert 2014-02-01 03:07:14 -06:00
parent e1f91a768c
commit 5e3419836c

View File

@ -142,7 +142,6 @@ class SMConfig(object):
'-Werror', '-Werror',
'-Wno-uninitialized', '-Wno-uninitialized',
'-Wno-unused', '-Wno-unused',
'-Wno-logical-op-parentheses',
'-Wno-switch', '-Wno-switch',
'-msse', '-msse',
'-m32', '-m32',
@ -158,6 +157,11 @@ class SMConfig(object):
if (have_gcc and cxx.minorVersion >= 7) or (have_clang and cxx.majorVersion >= 3): if (have_gcc and cxx.minorVersion >= 7) or (have_clang and cxx.majorVersion >= 3):
cfg.cxxflags += ['-Wno-delete-non-virtual-dtor'] cfg.cxxflags += ['-Wno-delete-non-virtual-dtor']
if have_gcc:
cfg.cflags += ['-Wno-parentheses']
elif have_clang:
cfg.cflags += ['-Wno-logical-op-parentheses']
cfg.linkflags += ['-m32'] cfg.linkflags += ['-m32']
cfg.cxxflags += [ cfg.cxxflags += [
'-fno-exceptions', '-fno-exceptions',