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

Commit

Permalink
[scons] Enable C++14 for all targets by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Dec 19, 2017
1 parent 0ee51b7 commit 68e73b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
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

0 comments on commit 68e73b3

Please sign in to comment.