Commit 34c0a880222916e324a0c383ec463f73922b3864
1 parent
700f5b96
Local dev: use --std=c++11 explicitly
Since g++ (as of this writing) uses c++14 by default, this prevents me from accidentally using c++14 features.
Showing
1 changed file
with
6 additions
and
5 deletions
README-maintainer
| ... | ... | @@ -4,16 +4,17 @@ ROUTINE DEVELOPMENT |
| 4 | 4 | |
| 5 | 5 | Default: |
| 6 | 6 | |
| 7 | -./configure --enable-werror | |
| 7 | +./configure CXX="g++ --std=c++11" --enable-werror | |
| 8 | 8 | |
| 9 | 9 | Debugging: |
| 10 | 10 | |
| 11 | -./configure CFLAGS="-g" CXXFLAGS="-g" --enable-werror --disable-shared | |
| 11 | +./configure CXX="g++ --std=c++11" CFLAGS="-g" CXXFLAGS="-g" \ | |
| 12 | + --enable-werror --disable-shared | |
| 12 | 13 | |
| 13 | 14 | Profiling: |
| 14 | 15 | |
| 15 | -./configure CFLAGS="-g -pg" CXXFLAGS="-g -pg" LDFLAGS="-pg" \ | |
| 16 | - --enable-werror --disable-shared | |
| 16 | +./configure CXX="g++ --std=c++11" CFLAGS="-g -pg" CXXFLAGS="-g -pg" \ | |
| 17 | + LDFLAGS="-pg" --enable-werror --disable-shared | |
| 17 | 18 | |
| 18 | 19 | Then run `gprof gmon.out`. Note that gmon.out is not cumulative. |
| 19 | 20 | |
| ... | ... | @@ -22,7 +23,7 @@ Memory checks: |
| 22 | 23 | ./configure CFLAGS="-fsanitize=address -fsanitize=undefined -g" \ |
| 23 | 24 | CXXFLAGS="-fsanitize=address -fsanitize=undefined -g" \ |
| 24 | 25 | LDFLAGS="-fsanitize=address -fsanitize=undefined" \ |
| 25 | - CC=clang CXX=clang++ \ | |
| 26 | + CC=clang CXX="clang++ --std=c++11" \ | |
| 26 | 27 | --enable-werror --disable-shared |
| 27 | 28 | |
| 28 | 29 | GOOGLE OSS-FUZZ | ... | ... |