diff options
Diffstat (limited to 'source/luametatex/cmake/debug.cmake')
-rw-r--r-- | source/luametatex/cmake/debug.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/luametatex/cmake/debug.cmake b/source/luametatex/cmake/debug.cmake new file mode 100644 index 000000000..2aa5dbf4f --- /dev/null +++ b/source/luametatex/cmake/debug.cmake @@ -0,0 +1,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") |