Commits

Robert Clipsham committed 0997d7c

Tweaks to the compilation script to it plays nicely with dmd

Comments (0)

Files changed (1)

 mkdir -p .obj lib
 
 [[ -z $DC ]] && DC='ldmd'
+[[ -z $DEBUG ]] && DEBUG=1
 ARGS="-g -c -Ifcgi $@"
 if [[ $DC = 'gdmd' ]]; then
     OD='-od'
 
 $DC -unittest $(echo $ARGS | perl -pe 's/-c//g') bootstrap.d controllers.d $OD.obj ${OF}bin/serenity.fcgi -L-Llib -L-lserenity-example -L-lserenity -L-lfcgid -L-lfcgi -Ifcgi || exit 1
 # Speed up symbol look up for actions when not debugging
-expr match "$ARGS" -g &>/dev/null
-if (( $? != 0 )); then
+if (( $DEBUG == 0 )); then
     strip -w '-K_D*controllers*view*MFC8serenity7Request7RequestAAaZC8serenity12HtmlDocument12HtmlDocument' bin/serenity.fcgi
 fi