Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mesa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
virgl-es
mesa
Commits
6544be62
Commit
6544be62
authored
Jan 26, 2010
by
Alan Hourihane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow the environment to override certain flags.
parent
1019f0de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
SConstruct
SConstruct
+11
-0
No files found.
SConstruct
View file @
6544be62
...
...
@@ -59,6 +59,17 @@ env = Environment(
ENV
=
os
.
environ
,
)
if
os
.
environ
.
has_key
(
'CC'
):
env
[
'CC'
]
=
os
.
environ
[
'CC'
]
if
os
.
environ
.
has_key
(
'CFLAGS'
):
env
[
'CCFLAGS'
]
+=
SCons
.
Util
.
CLVar
(
os
.
environ
[
'CFLAGS'
])
if
os
.
environ
.
has_key
(
'CXX'
):
env
[
'CXX'
]
=
os
.
environ
[
'CXX'
]
if
os
.
environ
.
has_key
(
'CXXFLAGS'
):
env
[
'CXXFLAGS'
]
+=
SCons
.
Util
.
CLVar
(
os
.
environ
[
'CXXFLAGS'
])
if
os
.
environ
.
has_key
(
'LDFLAGS'
):
env
[
'LINKFLAGS'
]
+=
SCons
.
Util
.
CLVar
(
os
.
environ
[
'LDFLAGS'
])
Help
(
opts
.
GenerateHelpText
(
env
))
# replicate options values in local variables
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment