Commit d60f0748 authored by Jose Fonseca's avatar Jose Fonseca

scons: Disable -mstackrealign on MinGW again.

It's still broken, however it doesn't show up on debug builds.
parent 1a8899d6
......@@ -349,12 +349,15 @@ def generate(env):
if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('4.2'):
if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('4.2') \
and (platform != 'windows' or env['build'] == 'debug' or True):
# NOTE: We need to ensure stack is realigned given that we
# produce shared objects, and have no control over the stack
# alignment policy of the application. Therefore we need
# -mstackrealign ore -mincoming-stack-boundary=2.
# XXX: -O and -mstackrealign causes stack corruption on MinGW
# XXX: We could have SSE without -mstackrealign if we always used
# __attribute__((force_align_arg_pointer)), but that's not
# always the case.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment