using stack protection flags while using gcc-sanitizer toolset (#1257)

This commit is contained in:
Alden Torres 2016-10-25 20:48:49 -04:00 committed by Arvid Norberg
parent 4eebd0c68a
commit f2efee4477
1 changed files with 9 additions and 1 deletions

View File

@ -79,7 +79,15 @@ install:
echo "using gcc : : ccache g++-5 : <cxxflags>-std=c++11 ;" >> ~/user-config.jam;
fi'
- 'if [[ $toolset == "gcc-sanitizer" ]]; then
echo "using gcc : sanitizer : ccache g++-5 : <cxxflags>-std=c++11 <compileflags>-fsanitize=address,undefined <compileflags>-fno-sanitize-recover=address,undefined <linkflags>-fsanitize=address,undefined <linkflags>-fno-sanitize-recover=address,undefined <linkflags>-fuse-ld=gold ;" >> ~/user-config.jam;
echo "using gcc : sanitizer : ccache g++-5 :
<cxxflags>-std=c++11
<compileflags>-fstack-protector-all
<compileflags>-fstack-check
<compileflags>-fsanitize=address,undefined
<compileflags>-fno-sanitize-recover=address,undefined
<linkflags>-fsanitize=address,undefined
<linkflags>-fno-sanitize-recover=address,undefined
<linkflags>-fuse-ld=gold ;" >> ~/user-config.jam;
fi'
- 'if [[ $toolset == "gcc-coverage" ]]; then
echo "using gcc : coverage : ccache g++-5 --coverage : <cxxflags>-std=c++11 <linkflags>--coverage ;" >> ~/user-config.jam;