mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-05 08:02:11 +00:00
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.
This commit is contained in:
parent
700f5b961e
commit
34c0a88022
@ -4,16 +4,17 @@ ROUTINE DEVELOPMENT
|
|||||||
|
|
||||||
Default:
|
Default:
|
||||||
|
|
||||||
./configure --enable-werror
|
./configure CXX="g++ --std=c++11" --enable-werror
|
||||||
|
|
||||||
Debugging:
|
Debugging:
|
||||||
|
|
||||||
./configure CFLAGS="-g" CXXFLAGS="-g" --enable-werror --disable-shared
|
./configure CXX="g++ --std=c++11" CFLAGS="-g" CXXFLAGS="-g" \
|
||||||
|
--enable-werror --disable-shared
|
||||||
|
|
||||||
Profiling:
|
Profiling:
|
||||||
|
|
||||||
./configure CFLAGS="-g -pg" CXXFLAGS="-g -pg" LDFLAGS="-pg" \
|
./configure CXX="g++ --std=c++11" CFLAGS="-g -pg" CXXFLAGS="-g -pg" \
|
||||||
--enable-werror --disable-shared
|
LDFLAGS="-pg" --enable-werror --disable-shared
|
||||||
|
|
||||||
Then run `gprof gmon.out`. Note that gmon.out is not cumulative.
|
Then run `gprof gmon.out`. Note that gmon.out is not cumulative.
|
||||||
|
|
||||||
@ -22,7 +23,7 @@ Memory checks:
|
|||||||
./configure CFLAGS="-fsanitize=address -fsanitize=undefined -g" \
|
./configure CFLAGS="-fsanitize=address -fsanitize=undefined -g" \
|
||||||
CXXFLAGS="-fsanitize=address -fsanitize=undefined -g" \
|
CXXFLAGS="-fsanitize=address -fsanitize=undefined -g" \
|
||||||
LDFLAGS="-fsanitize=address -fsanitize=undefined" \
|
LDFLAGS="-fsanitize=address -fsanitize=undefined" \
|
||||||
CC=clang CXX=clang++ \
|
CC=clang CXX="clang++ --std=c++11" \
|
||||||
--enable-werror --disable-shared
|
--enable-werror --disable-shared
|
||||||
|
|
||||||
GOOGLE OSS-FUZZ
|
GOOGLE OSS-FUZZ
|
||||||
|
Loading…
Reference in New Issue
Block a user