echo -o binary
echo -instructionfailures inject code for instructionfailures
echo -profile build with profile options
+echo "-enable-assertions execute assert statements during compilation"
echo -help help
}
SRCFILES=''
EXTRAOPTIONS=''
MAINFILE='a'
+JAVAFORWARDOPTS=''
JAVAOPTS=''
OPTIONALFLAG=false
then
CHECKFLAG=true
JAVAOPTS="$JAVAOPTS -conscheck"
+elif [[ $1 = '-enable-assertions' ]]
+then
+JAVAFORWARDOPTS="$JAVAFORWARDOPTS -ea"
elif [[ $1 = '-specdir' ]]
then
cd $2
# Build bristlecone/java sources
-java -cp $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
+if ! java $JAVAFORWARDOPTS -cp $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main -classlibrary \
$ROBUSTROOT/ClassLibrary/ -dir $BUILDDIR -precise \
$JAVAOPTS $SRCFILES
+then exit $?
+fi
# Build all of the consistency specs