mirror of https://github.com/qpdf/qpdf.git
Add -DCMAKE_EXPORT_COMPILE_COMMANDS=1 in README-maintainer
This creates an output used by emacs lsp-mode.
This commit is contained in:
parent
63f7cfdb9b
commit
bbd057b231
|
@ -4,18 +4,21 @@ ROUTINE DEVELOPMENT
|
||||||
|
|
||||||
Default:
|
Default:
|
||||||
|
|
||||||
cmake -DMAINTAINER_MODE=1 -DBUILD_STATIC_LIBS=0 \
|
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
|
||||||
|
-DMAINTAINER_MODE=1 -DBUILD_STATIC_LIBS=0 \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
||||||
|
|
||||||
Debugging:
|
Debugging:
|
||||||
|
|
||||||
cmake -DMAINTAINER_MODE=1 -DBUILD_SHARED_LIBS=0 \
|
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
|
||||||
|
-DMAINTAINER_MODE=1 -DBUILD_SHARED_LIBS=0 \
|
||||||
-DCMAKE_BUILD_TYPE=Debug ..
|
-DCMAKE_BUILD_TYPE=Debug ..
|
||||||
|
|
||||||
Profiling:
|
Profiling:
|
||||||
|
|
||||||
CFLAGS=-pg LDFLAGS=-pg \
|
CFLAGS=-pg LDFLAGS=-pg \
|
||||||
cmake -DMAINTAINER_MODE=1 -DBUILD_SHARED_LIBS=0 \
|
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
|
||||||
|
-DMAINTAINER_MODE=1 -DBUILD_SHARED_LIBS=0 \
|
||||||
-DCMAKE_BUILD_TYPE=Debug ..
|
-DCMAKE_BUILD_TYPE=Debug ..
|
||||||
|
|
||||||
Then run `gprof gmon.out`. Note that gmon.out is not cumulative.
|
Then run `gprof gmon.out`. Note that gmon.out is not cumulative.
|
||||||
|
@ -26,7 +29,8 @@ CFLAGS="-fsanitize=address -fsanitize=undefined" \
|
||||||
CXXFLAGS="-fsanitize=address -fsanitize=undefined" \
|
CXXFLAGS="-fsanitize=address -fsanitize=undefined" \
|
||||||
LDFLAGS="-fsanitize=address -fsanitize=undefined" \
|
LDFLAGS="-fsanitize=address -fsanitize=undefined" \
|
||||||
CC=clang CXX=clang++ \
|
CC=clang CXX=clang++ \
|
||||||
cmake -DMAINTAINER_MODE=1 -DBUILD_SHARED_LIBS=0 \
|
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
|
||||||
|
-DMAINTAINER_MODE=1 -DBUILD_SHARED_LIBS=0 \
|
||||||
-DCMAKE_BUILD_TYPE=Debug ..
|
-DCMAKE_BUILD_TYPE=Debug ..
|
||||||
|
|
||||||
Windows:
|
Windows:
|
||||||
|
|
Loading…
Reference in New Issue