scons: Pass -mstackrealign option to gcc.
It is impossible to have gcc generate SSE code without it, as thirdparty applications often call us with an unaligned stack pointer.
This commit is contained in:
@@ -340,6 +340,7 @@ def generate(env):
|
||||
'-m32',
|
||||
#'-march=pentium4',
|
||||
'-mmmx', '-msse', '-msse2', # enable SIMD intrinsics
|
||||
'-mstackrealign', # ensure stack is aligned -- do not enabled -msse without it!
|
||||
#'-mfpmath=sse',
|
||||
]
|
||||
if env['machine'] == 'x86_64':
|
||||
|
Reference in New Issue
Block a user