moved why2 lib into flags

This commit is contained in:
Václav Šmejkal 2022-05-01 16:35:48 +02:00
parent 25259423b5
commit e98fc0354b

View File

@ -27,12 +27,14 @@ if [[ "$1" == "test" ]]; then ########## TEST ##########
echo "Using debug flag" echo "Using debug flag"
fi fi
flags="$flags -lwhy2"
### ###
echo "Compiling... (Flags: $flags)" echo "Compiling... (Flags: $flags)"
### ###
# Compile # Compile
$compiler -lwhy2 $testFile $flags -o $output $compiler $testFile $flags -o $output
# Compilation failed # Compilation failed
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then