File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,9 +4,15 @@ Import('env')
44
55import os
66
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+
714# Silence copious warnings from the boost headers.
815P = os .environ ['PREFIX' ]
916env .Prepend (CCFLAGS = ['-isystem{}/include' .format (P )])
10- env .Replace (CXX = os .environ ['CXX' ])
1117
1218# vim: ft=python
Original file line number Diff line number Diff line change @@ -4,10 +4,6 @@ Import('env')
44
55# Build environment configuration --------------------------------------------
66
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-
117# Insert LIBRARY_PATH explicitly because some compilers
128# ignore it in the system environment.
139env .PrependUnique (LIBPATH = env ['ENV' ].get ('LIBRARY_PATH' , '' ).split (':' ))
You can’t perform that action at this time.
0 commit comments