Differences From
Artifact [3df2029917]:
156 156 fi
157 157 # only rebuild the file if the source file is newer
158 158 if test "$debug" = yes; then
159 159 local dflag="-g"
160 160 else
161 161 local dflag="-O4"
162 162 fi
163 - report $cc $src $3 $dflag -std=c11 -isystem "$to" -isystem "$gen" -isystem "arch/" -ffreestanding -nostdlib "-L$to" "-o$output"
163 + if test "$assembly" = yes; then
164 + report $cc $src $3 $dflag -std=c11 -isystem "$to" -isystem "$gen" -isystem "arch/" -ffreestanding -nostdlib "-L$to" -masm=intel -fverbose-asm -S "-o$output.s"
165 + else
166 + report $cc $src $3 $dflag -std=c11 -isystem "$to" -isystem "$gen" -isystem "arch/" -ffreestanding -nostdlib "-L$to" "-o$output"
167 + fi
164 168 }
165 169
166 170 say "commencing libk build $build at $(timestamp)"
167 171 # set -x
168 172
169 173 # get type data
170 174 mkdir -p $gen