mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
scons: Try to cope with scons 0.98+.
This commit is contained in:
parent
99fba5466b
commit
c9acd439b1
1 changed files with 8 additions and 2 deletions
10
common.py
10
common.py
|
|
@ -44,8 +44,14 @@ else:
|
|||
# Common options
|
||||
|
||||
def AddOptions(opts):
|
||||
from SCons.Options.BoolOption import BoolOption
|
||||
from SCons.Options.EnumOption import EnumOption
|
||||
try:
|
||||
from SCons.Options.BoolOption import BoolOption
|
||||
except ImportError:
|
||||
from SCons.Variables.BoolVariable import BoolVariable as BoolOption
|
||||
try:
|
||||
from SCons.Options.EnumOption import EnumOption
|
||||
except ImportError:
|
||||
from SCons.Variables.EnumVariable import EnumVariable as EnumOption
|
||||
opts.Add(BoolOption('debug', 'build debug version', 'no'))
|
||||
#opts.Add(BoolOption('quiet', 'quiet command lines', 'no'))
|
||||
opts.Add(EnumOption('machine', 'use machine-specific assembly code', default_machine,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue