Fossil

Check-in [eb0f689d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Set debug defines in CFLAGS when in debug config, so it applies project wide
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: eb0f689dcc39c3b4ad3204d5c59239337a21cb5b166af3a0d8fe0a4fcc91f7ef
User & Date: ashepilko 2018-07-22 20:04:51
Context
2018-07-22
21:10
In debug config, reference the compiled sources; this allows stepping through the actual code in the debugger check-in: 58bf02d1 user: ashepilko tags: trunk
20:04
Set debug defines in CFLAGS when in debug config, so it applies project wide check-in: eb0f689d user: ashepilko tags: trunk
19:16
Install by copy; covers case when install destination is on a different volume check-in: 449c6fd7 user: ashepilko tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to auto.def.

132
133
134
135
136
137
138
139
140

141
142
143
144
145
146
147
}

if {[string match *-solaris* [get-define host]]} {
    define-append EXTRA_CFLAGS {-D_XOPEN_SOURCE=500 -D__EXTENSIONS__}
}

if {[opt-bool fossil-debug]} {
    define-append EXTRA_CFLAGS -DFOSSIL_DEBUG
    define CFLAGS {-g -O0 -Wall}

    msg-result "Debugging support enabled"
}

if {[opt-bool no-opt]} {
    define CFLAGS {-g -O0 -Wall}
    msg-result "Builting without compiler optimization"
}







<

>







132
133
134
135
136
137
138

139
140
141
142
143
144
145
146
147
}

if {[string match *-solaris* [get-define host]]} {
    define-append EXTRA_CFLAGS {-D_XOPEN_SOURCE=500 -D__EXTENSIONS__}
}

if {[opt-bool fossil-debug]} {

    define CFLAGS {-g -O0 -Wall}
    define-append CFLAGS -DFOSSIL_DEBUG
    msg-result "Debugging support enabled"
}

if {[opt-bool no-opt]} {
    define CFLAGS {-g -O0 -Wall}
    msg-result "Builting without compiler optimization"
}