mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
gallium: Update scons instructions. Propagate user environment.
This commit is contained in:
parent
25c29080f7
commit
d432583d69
1 changed files with 5 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ import sys
|
||||||
#
|
#
|
||||||
# For example, invoke scons as
|
# For example, invoke scons as
|
||||||
#
|
#
|
||||||
# scons debug=1 dri=0 x86=1
|
# scons debug=1 dri=0 machine=x86
|
||||||
#
|
#
|
||||||
# to set configuration variables. Or you can write those options to a file
|
# to set configuration variables. Or you can write those options to a file
|
||||||
# named config.py:
|
# named config.py:
|
||||||
|
|
@ -19,7 +19,7 @@ import sys
|
||||||
# # config.py
|
# # config.py
|
||||||
# debug=1
|
# debug=1
|
||||||
# dri=0
|
# dri=0
|
||||||
# x86=1
|
# machine='x86'
|
||||||
#
|
#
|
||||||
# Invoke
|
# Invoke
|
||||||
#
|
#
|
||||||
|
|
@ -35,7 +35,9 @@ opts.Add(BoolOption('dri', 'build dri drivers', False))
|
||||||
opts.Add(EnumOption('machine', 'use machine-specific assembly code', 'x86',
|
opts.Add(EnumOption('machine', 'use machine-specific assembly code', 'x86',
|
||||||
allowed_values=('generic', 'x86', 'x86-64')))
|
allowed_values=('generic', 'x86', 'x86-64')))
|
||||||
|
|
||||||
env = Environment(options = opts)
|
env = Environment(
|
||||||
|
options = opts,
|
||||||
|
ENV = os.environ)
|
||||||
Help(opts.GenerateHelpText(env))
|
Help(opts.GenerateHelpText(env))
|
||||||
|
|
||||||
# for debugging
|
# for debugging
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue