File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,15 @@ Import('env')
4
4
5
5
import os
6
6
7
+ # Apply environment settings for Anaconda compilers
8
+ env .Replace (CXX = os .environ ['CXX' ])
9
+ env .MergeFlags (os .environ ['CFLAGS' ])
10
+ env .MergeFlags (os .environ ['CPPFLAGS' ])
11
+ env .MergeFlags (os .environ ['CXXFLAGS' ])
12
+ env .MergeFlags (os .environ ['LDFLAGS' ])
13
+
7
14
# Silence copious warnings from the boost headers.
8
15
P = os .environ ['PREFIX' ]
9
16
env .Prepend (CCFLAGS = ['-isystem{}/include' .format (P )])
10
- env .Replace (CXX = os .environ ['CXX' ])
11
17
12
18
# vim: ft=python
Original file line number Diff line number Diff line change @@ -4,10 +4,6 @@ Import('env')
4
4
5
5
# Build environment configuration --------------------------------------------
6
6
7
- # Apply CFLAGS, CXXFLAGS, LDFLAGS from the system environment.
8
- flagnames = 'CFLAGS CXXFLAGS CPPFLAGS LDFLAGS' .split ()
9
- env .MergeFlags ([os .environ .get (n , '' ) for n in flagnames ])
10
-
11
7
# Insert LIBRARY_PATH explicitly because some compilers
12
8
# ignore it in the system environment.
13
9
env .PrependUnique (LIBPATH = env ['ENV' ].get ('LIBRARY_PATH' , '' ).split (':' ))
You can’t perform that action at this time.
0 commit comments