Fix Linux build (r=dvander).
This commit is contained in:
parent
e1f91a768c
commit
5e3419836c
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user