Fossil SCM
Set debug defines in CFLAGS when in debug config, so it applies project wide
Commit
eb0f689dcc39c3b4ad3204d5c59239337a21cb5b166af3a0d8fe0a4fcc91f7ef
Parent
449c6fd749f5b47…
1 file changed
+1
-1
M
auto.def
+1
-1
| --- auto.def | ||
| +++ auto.def | ||
| @@ -134,12 +134,12 @@ | ||
| 134 | 134 | if {[string match *-solaris* [get-define host]]} { |
| 135 | 135 | define-append EXTRA_CFLAGS {-D_XOPEN_SOURCE=500 -D__EXTENSIONS__} |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | if {[opt-bool fossil-debug]} { |
| 139 | - define-append EXTRA_CFLAGS -DFOSSIL_DEBUG | |
| 140 | 139 | define CFLAGS {-g -O0 -Wall} |
| 140 | + define-append CFLAGS -DFOSSIL_DEBUG | |
| 141 | 141 | msg-result "Debugging support enabled" |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | if {[opt-bool no-opt]} { |
| 145 | 145 | define CFLAGS {-g -O0 -Wall} |
| 146 | 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-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 |