commit a818c11c1930b78a2eeb839f9fbbfab24936294a
Author: Scott Kostyshak <[email protected]>
Date: Fri Mar 14 23:42:34 2025 +0100
lyx-tester: add compiler flags for debug builds
---
development/lyx-tester/lyxbuild | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/development/lyx-tester/lyxbuild b/development/lyx-tester/lyxbuild
index a2d71c024b..603c1354de 100755
--- a/development/lyx-tester/lyxbuild
+++ b/development/lyx-tester/lyxbuild
@@ -545,6 +545,11 @@ else
# The following naive Bash append works well even if CPPFLAGS is empty,
# i.e., ";-O3" is processed well.
CPPFLAGS_FAST="${CPPFLAGS};-O3;-march=native"
+ #
+ # These flags aren't currently used, but might be useful for better
+ # debug builds.
+ #
https://stackoverflow.com/questions/7031210/linux-perf-how-to-interpret-and-find-hotspots
+ CPPFLAGS_DEBUG="${CPPFLAGS};-ggdb;-fno-omit-frame-pointer"
if [ "${always_enable_export_tests}" = "1" ]; then
ctest_flags="ON"
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs