Check-in [9a27037143]
Overview
Comment:Added support for a debug build
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9a2703714381c23e331ab3640a3746334921d014
User & Date: rkeene on 2014-07-20 16:15:56
Other Links: manifest | tags
Context
2014-07-23
01:17
Updated to output environment variables set check-in: 592e72598f user: rkeene tags: trunk
2014-07-20
16:15
Added support for a debug build check-in: 9a27037143 user: rkeene tags: trunk
15:56
Added storage option and printing of build command check-in: dea912723e user: rkeene tags: trunk
Changes

Modified build/web/kitcreator.vfs/index.rvt from [c8faa1ee8b] to [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">

Modified build/web/process_queue from [15e2d8c10c] to [1c1dcdc43a].

    65     65   			}
    66     66   			"threaded" {
    67     67   				if {$value} {
    68     68   					lappend args "--enable-threads"
    69     69   				} else {
    70     70   					lappend args "--disable-threads"
    71     71   				}
           72  +			}
           73  +			"debug" {
           74  +				if {$value} {
           75  +					lappend args "--enable-symbols"
           76  +					set ::env(STRIP) true
           77  +				}
    72     78   			}
    73     79   			"storage" {
    74     80   				lappend args "--enable-kit-storage=$value"
    75     81   			}
    76     82   			"staticmk4" {
    77     83   			}
    78     84   			"statictk" {
................................................................................
    81     87   	}
    82     88   
    83     89   	catch {
    84     90   		exec ./build/pre.sh
    85     91   	}
    86     92   
    87     93   	catch {
    88         -		set fd [open "${outfile}.log" w]
    89         -		puts $fd "Running: [list $script $buildinfo(tcl_version) {*}$args]"
           94  +		file delete "${outfile}.log"
           95  +	}
           96  +
           97  +	catch {
           98  +		set cmd [list $script $buildinfo(tcl_version) {*}$args]
           99  +		set fd [open "${outfile}.log" w+]
          100  +		puts $fd "Running: $cmd"
    90    101   		close $fd
    91         -		exec $script $buildinfo(tcl_version) {*}$args > "${outfile}.log" 2>@1
          102  +	}
          103  +
          104  +	catch {
          105  +		exec {*}$cmd >> "${outfile}.log" 2>@1
    92    106   	}
    93    107   
    94    108   	catch {
    95    109   		exec grep ^ {*}[glob */build.log] >> "${outfile}.log"
    96    110   	}
    97    111   
    98    112   	foreach file [list tclkit-$buildinfo(tcl_version) {*}[glob -nocomplain libtclkit*]] {