Skip to content
This repository has been archived by the owner on Jan 7, 2019. It is now read-only.

[scons] Enable C++14 for all targets by default. #320

Merged
merged 2 commits into from
Dec 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ addons:
- libsdl1.2-dev
- libsdl-image1.2-dev
- libgtkmm-2.4-dev
- g++-4.8
- g++-7
- libzmqpp-dev

before_install:
- export CC=gcc-4.8
- export CXX=g++-4.8
- export CC=gcc-7
- export CXX=g++-7
- ls -l $HOME/cache
- bash .travis.dep.sh
- export LD_LIBRARY_PATH="$HOME/toolchain/boost/lib:$LD_LIBRARY_PATH"
Expand Down
2 changes: 1 addition & 1 deletion scons/site_tools/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def generate(env, **kw):
env['CXXFLAGS'] = [
# "-fverbose-asm",
# "-save-temps", # save preprocessed files
"-std=c++11",
"-std=c++14",
"-fconstexpr-depth=10000", # enable deep recursion
"-fno-exceptions",
"-fno-rtti",
Expand Down
3 changes: 1 addition & 2 deletions scons/site_tools/avr.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ def generate(env, **kw):

# C++ flags
env['CXXFLAGS'] = [
# "-std=gnu++98",
"-std=gnu++0x",
"-std=c++14",
"-fno-exceptions",
"-fno-rtti",
"-fno-threadsafe-statics",
Expand Down
2 changes: 1 addition & 1 deletion scons/site_tools/hosted.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def generate(env, **kw):

# C++ flags
env['CXXFLAGS'] = [
"-std=c++11",
"-std=c++14",
# "-Weffc++",
"-Woverloaded-virtual",
]
Expand Down