mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 04:40:11 +01:00
scons: Get x86-64<->x86 cross build of assembly files right.
This commit is contained in:
parent
6106db4c5d
commit
05cfb4c4b8
1 changed files with 7 additions and 0 deletions
|
|
@ -286,6 +286,13 @@ def generate(env):
|
|||
env.Append(CFLAGS = cflags)
|
||||
env.Append(CXXFLAGS = cflags)
|
||||
|
||||
# Assembler options
|
||||
if gcc:
|
||||
if env['machine'] == 'x86':
|
||||
env.Append(ASFLAGS = ['-m32'])
|
||||
if env['machine'] == 'x86_64':
|
||||
env.Append(ASFLAGS = ['-m64'])
|
||||
|
||||
# Linker options
|
||||
linkflags = []
|
||||
if gcc:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue