Diff

Differences From Artifact [c8faa1ee8b]:

To Artifact [f9925dfa52]:


    67     67   		set build_tcl_version $args(tcl_version)
    68     68   		set build_kitcreator_version $args(kitcreator_version)
    69     69   
    70     70   		## Optional Arguments
    71     71   		set build_packages [list]
    72     72   		set build_options(threaded) 0
    73     73   		set build_options(kitdll) 0
           74  +		set build_options(debug) 0
    74     75   		foreach arg [array names args] {
    75     76   			switch -glob -- $arg {
    76     77   				"option_package_*" {
    77     78   					set package [join [lrange [split $arg _] 2 end] _]
    78     79   
    79     80   					lappend build_packages $package
    80     81   				}
    81     82   				"option_threaded" {
    82     83   					set build_options(threaded) 1
    83     84   				}
    84     85   				"option_kitdll" {
    85     86   					set build_options(kitdll) 1
    86     87   				}
           88  +				"option_debug" {
           89  +					set build_options(debug) 1
           90  +				}
    87     91   				"option_storage" {
    88     92   					switch -- $args($arg) {
    89     93   						"mk4" - "zip" - "cvfs" {
    90     94   							set build_options(storage) $args($arg)
    91     95   						}
    92     96   					}
    93     97   				}
................................................................................
   136    140   
   137    141   		## Compute basic key	
   138    142   		set key [list $secret $build_platform $cache_tcl_version $cache_kitcreator_version $build_packages]
   139    143   
   140    144   		## Update key with options in deterministic order
   141    145   		foreach option [lsort -dictionary [array names build_options]] {
   142    146   			switch -- $option {
   143         -				"threaded" - "kitdll" {
          147  +				"threaded" - "kitdll" - "debug" {
   144    148   					# For boolean options, skip them if they are not enabled
   145    149   					if {!$build_options($option)} {
   146    150   						continue
   147    151   					}
   148    152   				}
   149    153   			}
   150    154   			lappend key [list "option:$option" $build_options($option)]
................................................................................
   306    310           <tr>
   307    311             <td>Kit Options:</td>
   308    312             <td>
   309    313   <?  foreach package [lsort -dictionary [array names packages]] { ?>
   310    314               <input type="checkbox" name="option_package_<? puts -nonewline $package ?>" id="option_package_<? puts -nonewline $package ?>">Package: <? puts -nonewline $packages($package) ?><br>
   311    315   <? } ?>
   312    316               <input type="checkbox" name="option_threaded">Kit: Threaded<br>
          317  +            <input type="checkbox" name="option_debug">Kit: Debugging Build<br>
   313    318               <input type="checkbox" name="option_kitdll">Kit: Build Library (KitDLL)<br>
   314    319             </td>
   315    320           </tr>
   316    321   	<tr>
   317    322   		<td>Kit Storage:</td>
   318    323   		<td>
   319    324   			<select name="option_storage">