add check for nasm

This commit is contained in:
nakst 2021-12-14 11:27:38 +00:00
parent 70c1211b2c
commit 8310ea21bc
2 changed files with 8 additions and 1 deletions

View File

@ -54,6 +54,13 @@ if [ ! -f "bin/good_compiler.txt" ]; then
echo yes > "bin/good_compiler.txt"
fi
# Check nasm is available.
nasm --version > /dev/null
if [ $? -ne 0 ]; then
echo "Error: Missing nasm."
exit
fi
# Compile and run Build.
gcc -o bin/build -g util/build.c -pthread -DPARALLEL_BUILD -D${ES_TARGET-TARGET_X86_64} \
-Wall -Wextra -Wno-format-security -Wno-format-overflow -Wno-missing-field-initializers -Wno-unused-function -Wno-format-truncation \

View File

@ -1746,7 +1746,7 @@ int main(int _argc, char **_argv) {
printf("Enter 'help' to get a list of commands.\n");
char *prev = NULL;
canBuildLuigi = !CallSystem("gcc -o bin/luigi.h.gch util/luigi.h -D UI_IMPLEMENTATION -D UI_LINUX");
canBuildLuigi = !CallSystem("gcc -o bin/luigi.h.gch util/luigi.h -D UI_IMPLEMENTATION -D UI_LINUX 2> /dev/null");
while (true) {
char *l = NULL;