mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
scons: Make PIPE_ALIGN_VAR() of static/global vars work on MinGW.
Workaround http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216
This commit is contained in:
parent
5cf0789f91
commit
6f81b78cb4
1 changed files with 3 additions and 0 deletions
|
|
@ -282,6 +282,9 @@ def generate(env):
|
|||
ccflags += [
|
||||
'-mmmx', '-msse', '-msse2', # enable SIMD intrinsics
|
||||
]
|
||||
if platform == 'windows':
|
||||
# Workaround http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216
|
||||
ccflags += ['-fno-common']
|
||||
if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('4.2'):
|
||||
ccflags += [
|
||||
'-mstackrealign', # ensure stack is aligned
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue