Fossil SCM

Set debug defines in CFLAGS when in debug config, so it applies project wide

ashepilko 2018-07-22 20:04 UTC trunk
Commit eb0f689dcc39c3b4ad3204d5c59239337a21cb5b166af3a0d8fe0a4fcc91f7ef
1 file changed +1 -1
+1 -1
--- auto.def
+++ auto.def
@@ -134,12 +134,12 @@
134134
if {[string match *-solaris* [get-define host]]} {
135135
define-append EXTRA_CFLAGS {-D_XOPEN_SOURCE=500 -D__EXTENSIONS__}
136136
}
137137
138138
if {[opt-bool fossil-debug]} {
139
- define-append EXTRA_CFLAGS -DFOSSIL_DEBUG
140139
define CFLAGS {-g -O0 -Wall}
140
+ define-append CFLAGS -DFOSSIL_DEBUG
141141
msg-result "Debugging support enabled"
142142
}
143143
144144
if {[opt-bool no-opt]} {
145145
define CFLAGS {-g -O0 -Wall}
146146
--- auto.def
+++ auto.def
@@ -134,12 +134,12 @@
134 if {[string match *-solaris* [get-define host]]} {
135 define-append EXTRA_CFLAGS {-D_XOPEN_SOURCE=500 -D__EXTENSIONS__}
136 }
137
138 if {[opt-bool fossil-debug]} {
139 define-append EXTRA_CFLAGS -DFOSSIL_DEBUG
140 define CFLAGS {-g -O0 -Wall}
 
141 msg-result "Debugging support enabled"
142 }
143
144 if {[opt-bool no-opt]} {
145 define CFLAGS {-g -O0 -Wall}
146
--- auto.def
+++ auto.def
@@ -134,12 +134,12 @@
134 if {[string match *-solaris* [get-define host]]} {
135 define-append EXTRA_CFLAGS {-D_XOPEN_SOURCE=500 -D__EXTENSIONS__}
136 }
137
138 if {[opt-bool fossil-debug]} {
 
139 define CFLAGS {-g -O0 -Wall}
140 define-append CFLAGS -DFOSSIL_DEBUG
141 msg-result "Debugging support enabled"
142 }
143
144 if {[opt-bool no-opt]} {
145 define CFLAGS {-g -O0 -Wall}
146

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button