<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5b924237ba1ef2c6d9fbc5c296a7aeb8cfe87234">https://github.com/macports/macports-ports/commit/5b924237ba1ef2c6d9fbc5c296a7aeb8cfe87234</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 5b924237ba1 pg debug: add variant debugoptimized Co-authored-by: Christopher Nielsen <mascguy@github.com>
</span>5b924237ba1 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 5b924237ba1ef2c6d9fbc5c296a7aeb8cfe87234
</span>Author: Lukas Oberhuber <lukaso@gmail.com>
AuthorDate: Sun May 21 17:42:04 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> pg debug: add variant debugoptimized
</span><span style='display:block; white-space:pre;color:#404040;'> Co-authored-by: Christopher Nielsen <mascguy@github.com>
</span>---
_resources/port1.0/group/debug-1.0.tcl | 39 +++++++++++++++++++++++++---------
1 file changed, 29 insertions(+), 10 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/debug-1.0.tcl b/_resources/port1.0/group/debug-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 699ea55da85..0164a6b2d03 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/debug-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/debug-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -14,6 +14,10 @@ if { [variant_exists debug] } {
</span> error "pg_debug: variant 'debug' already exists"
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if { [variant_exists debugoptimized] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ error "pg_debug: variant 'debugoptimized' already exists"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> default debug.configure \
[list \
cflags \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,19 +32,24 @@ default debug.configure \
</span>
default debug.flags.delete \
[list -O1 -O2 -O3 -Os -mtune=native -DNDEBUG -DNDEBUG=1]
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> default debug.flags.add \
[list -g -O0]
<span style='display:block; white-space:pre;background:#ffe0e0;'>-ui_debug "pg_debug: adding variant"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant debug description {Enable debug flags and symbols} {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default debugoptimized.flags.delete \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [list]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default debugoptimized.flags.add \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [list -g]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ui_debug "pg_debug: adding variants"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant debug conflicts debugoptimized description {Enable debug flags and symbols} {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant debugoptimized conflicts debug description {Enable debug flags and symbols, while building optimized code} {}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-proc debug::setup_debug {} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "debug::setup_debug: configuring for debug build"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc debug::setup_debug {p_debug_mode} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "debug::setup_debug: configuring for debug mode: ${p_debug_mode}"
</span>
set conf_names [option debug.configure]
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set flags_delete [option debug.flags.delete]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set flags_add [option debug.flags.add]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set flags_delete [option ${p_debug_mode}.flags.delete]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set flags_add [option ${p_debug_mode}.flags.add]
</span>
foreach c ${conf_names} {
foreach f ${flags_delete} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -65,11 +74,21 @@ proc debug::post_destroot {} {
</span> }
proc debug::pg_callback {} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set debug_enabled [variant_isset debug]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "debug::pg_callback: debug enabled: ${debug_enabled}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set debug_enabled [variant_isset debug]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set debugoptimized_enabled [variant_isset debugoptimized]
</span>
if { ${debug_enabled} } {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- debug::setup_debug
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set debug_mode debug
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif { ${debugoptimized_enabled} } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set debug_mode debugoptimized
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set debug_mode disabled
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "debug::pg_callback: debug mode: ${debug_mode}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${debug_mode} ne "disabled" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ debug::setup_debug ${debug_mode}
</span> }
}
</pre><pre style='margin:0'>
</pre>