Skip to content

Commit 90f6c8b

Browse files
committed
BLD: compile with default c++98 language standard
Ignore language option in CXXFLAGS environment variable.
1 parent 7da0209 commit 90f6c8b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

conda-recipe/sconscript.local

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ env.MergeFlags(os.environ['CPPFLAGS'])
1111
env.MergeFlags(os.environ['CXXFLAGS'])
1212
env.MergeFlags(os.environ['LDFLAGS'])
1313

14+
# Use the default c++98 language standard
15+
cxxflags98 = [f for f in env['CXXFLAGS'] if not f.startswith('-std=')]
16+
env.Replace(CXXFLAGS=cxxflags98)
17+
1418
# Silence copious warnings from the boost headers.
1519
P = os.environ['PREFIX']
1620
env.Prepend(CCFLAGS=['-isystem{}/include'.format(P)])

0 commit comments

Comments
 (0)