Skip to content

Commit 4e60673

Browse files
committed
Silence the copious boost-warnings in conda build.
These are the C++11 related warnings originating from boost headers. Prevent travis error due to excessive log size.
1 parent ef6601c commit 4e60673

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

conda-recipe/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
export CPATH="${PREFIX}/include:$CPATH"
44
export LIBRARY_PATH="${PREFIX}/lib:$LIBRARY_PATH"
5+
56
MYNCPU=$(( (CPU_COUNT > 4) ? 4 : CPU_COUNT ))
67

78
if [ `uname` == Darwin ]; then
@@ -10,6 +11,10 @@ else
1011
export LD_LIBRARY_PATH="${PREFIX}/lib"
1112
fi
1213

14+
# Apply sconscript.local customizations.
15+
cp ${RECIPE_DIR}/sconscript.local ./
16+
17+
# Install srreal with scons to utilize multiple CPUs.
1318
scons -j $MYNCPU install prefix=$PREFIX
1419

1520
# Add more build steps here, if they are necessary.

conda-recipe/sconscript.local

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Customize scons build environment.
2+
3+
Import('env')
4+
5+
import os
6+
7+
# Silence copious warnings from the boost headers.
8+
P = os.environ['PREFIX']
9+
env.Prepend(CCFLAGS=['-isystem{}/include'.format(P)])
10+
11+
# vim: ft=python

0 commit comments

Comments
 (0)