Skip to content

Commit 606c832

Browse files
committed
Add EXTRA_CXX_FLAGS to fix gcc-4.7 build
1 parent b5758fb commit 606c832

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ matrix:
3737
sources: *sources
3838

3939
# gcc 4.7
40-
- env: COMPILER=g++-4.7 CCOMPILER=gcc-4.7
40+
- env: COMPILER=g++-4.7 CCOMPILER=gcc-4.7 EXTRA_CXXFLAGS=-D_GLIBCXX_USE_NANOSLEEP
4141
addons:
4242
apt:
4343
packages: g++-4.7
@@ -110,6 +110,7 @@ install:
110110

111111
before_script:
112112
- export CXX=$COMPILER CC=$CCOMPILER
113+
- export CXXFLAGS=$EXTRA_CXXFLAGS
113114
- cmake --version
114115
- mkdir build
115116
- cd build

0 commit comments

Comments
 (0)