commit 8bd6794c9b831faa9a59c760c8749cd78e1d94ad
Author: Scott Kostyshak <[email protected]>
Date: Sat Nov 29 15:33:16 2025 +0100
lyxbuild: add flags for fast + profiler
---
development/lyx-tester/lyxbuild | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/development/lyx-tester/lyxbuild b/development/lyx-tester/lyxbuild
index 3a92e54ee1..4ab0e3d2f6 100755
--- a/development/lyx-tester/lyxbuild
+++ b/development/lyx-tester/lyxbuild
@@ -825,7 +825,14 @@ else
# Should be a semi-colon separated list (if more than one option).
# The following naive Bash append works well even if CPPFLAGS is empty,
# i.e., ";-O3" is processed well.
+ #
CPPFLAGS_FAST="${CPPFLAGS};-O3;-march=native"
+ # fast, but: O3 -> O2 and also add debug level suitable for profilers (e.g.,
+ # "hotspot"): -g3 mostly adds macro information, which is useful for stepping
+ # in gdb, but irrelevant (and extra overhead) for hotspot profiling so just
+ # stick with "-g"
+ #CPPFLAGS_FAST="${CPPFLAGS};-O2;-march=native;-g"
+ #
#
# These flags aren't currently used, but might be useful for better
# debug builds.
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs