summaryrefslogtreecommitdiff
path: root/source/luametatex/cmake/debug.cmake
blob: 2aa5dbf4f7a83376aef7f7a62b13d8cdea9974f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# When we run valgrind we need verbose binaries:
#
# valgrind -v --track-origins=yes --leak-check=full context ...

# add_compile_options(-pg)
# set(CMAKE_EXE_LINKER_FLAGS "-pg")

# In addition to the microsoft compiler alignment suggestions we can run on linux:
#
# pahole luametatex

# add_compile_options(-p -gdwarf)
# set(CMAKE_EXE_LINKER_FLAGS "-p -gdwarf")