Fossil SCM
Use -O0 instead of -O2 for compiling when the --fossil-debug option of ./configure is used.
Commit
8a6e31f6372504e6852db80471fbb37b8c8d7283f82cc05789c0e30d0c545fe1
Parent
3200a7c72e41e78…
1 file changed
+1
M
auto.def
+1
| --- auto.def | ||
| +++ auto.def | ||
| @@ -132,10 +132,11 @@ | ||
| 132 | 132 | define-append EXTRA_CFLAGS {-D_XOPEN_SOURCE=500 -D__EXTENSIONS__} |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | if {[opt-bool fossil-debug]} { |
| 136 | 136 | define-append EXTRA_CFLAGS -DFOSSIL_DEBUG |
| 137 | + define CFLAGS {-g -O0} | |
| 137 | 138 | msg-result "Debugging support enabled" |
| 138 | 139 | } |
| 139 | 140 | |
| 140 | 141 | if {[opt-bool with-see]} { |
| 141 | 142 | define-append EXTRA_CFLAGS -DUSE_SEE |
| 142 | 143 |
| --- 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 |