Fossil SCM

Use -O0 instead of -O2 for compiling when the --fossil-debug option of ./configure is used.

drh 2017-06-15 03:13 trunk
Commit 8a6e31f6372504e6852db80471fbb37b8c8d7283f82cc05789c0e30d0c545fe1
1 file changed +1
+1
--- auto.def
+++ auto.def
@@ -132,10 +132,11 @@
132132
define-append EXTRA_CFLAGS {-D_XOPEN_SOURCE=500 -D__EXTENSIONS__}
133133
}
134134
135135
if {[opt-bool fossil-debug]} {
136136
define-append EXTRA_CFLAGS -DFOSSIL_DEBUG
137
+ define CFLAGS {-g -O0}
137138
msg-result "Debugging support enabled"
138139
}
139140
140141
if {[opt-bool with-see]} {
141142
define-append EXTRA_CFLAGS -DUSE_SEE
142143
--- auto.def
+++ auto.def
@@ -132,10 +132,11 @@
132 define-append EXTRA_CFLAGS {-D_XOPEN_SOURCE=500 -D__EXTENSIONS__}
133 }
134
135 if {[opt-bool fossil-debug]} {
136 define-append EXTRA_CFLAGS -DFOSSIL_DEBUG
 
137 msg-result "Debugging support enabled"
138 }
139
140 if {[opt-bool with-see]} {
141 define-append EXTRA_CFLAGS -DUSE_SEE
142
--- auto.def
+++ auto.def
@@ -132,10 +132,11 @@
132 define-append EXTRA_CFLAGS {-D_XOPEN_SOURCE=500 -D__EXTENSIONS__}
133 }
134
135 if {[opt-bool fossil-debug]} {
136 define-append EXTRA_CFLAGS -DFOSSIL_DEBUG
137 define CFLAGS {-g -O0}
138 msg-result "Debugging support enabled"
139 }
140
141 if {[opt-bool with-see]} {
142 define-append EXTRA_CFLAGS -DUSE_SEE
143

Keyboard Shortcuts

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