mirror of https://gitlab.com/nakst/essence
add check for nasm
This commit is contained in:
parent
70c1211b2c
commit
8310ea21bc
7
start.sh
7
start.sh
|
@ -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 \
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue