tsoding / nothing

A simple platformer about nothing
MIT License
295 stars 76 forks source link

Vague error message in ./build_posix.sh when $CC environment variable is not set #1180

Closed aobolensk closed 4 years ago

aobolensk commented 4 years ago

Script output:

+ pkg-config --cflags sdl2
+ CFLAGS= -Wall -Wextra -Wconversion -Wunused -Wunused-function -Wunused-label -Wunused-macros -Wunused-parameter -Wunused-value -Wunused-variable -Wcast-align -Wcast-qual -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -Wswitch -Wmissing-field-initializers -fno-common -fno-strict-aliasing -pedantic -std=c11 -ggdb -O3 -D_REENTRANT -I/usr/include/SDL2 -I./src/
+ [ ! -z  ]
+ pkg-config --libs sdl2
+ LIBS= -lSDL2 -lm
+ -Wall -Wextra -Wconversion -Wunused -Wunused-function -Wunused-label -Wunused-macros -Wunused-parameter -Wunused-value -Wunused-variable -Wcast-align -Wcast-qual -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -Wswitch -Wmissing-field-initializers -fno-common -fno-strict-aliasing -pedantic -std=c11 -ggdb -O3 -D_REENTRANT -I/usr/include/SDL2 -I./src/ -o nothing nothing.c -lSDL2 -lm
./build-posix.sh: 13: -Wall: not found

Steps to reproduce:

CC=               #if your CC has path to the compiler
./build-posix.sh  #run the script