diff --git a/src/platform/nix/build.sh b/src/platform/nix/build.sh index 9ebf532..000092d 100755 --- a/src/platform/nix/build.sh +++ b/src/platform/nix/build.sh @@ -1,2 +1,3 @@ +set -e clang++ -std=c++11 -Os -s -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections -DNDEBUG main.cpp ../../libs/stb_vorbis/stb_vorbis.c -I../../ -o../../../bin/OpenLara -lX11 -lGL -lm -lpthread -lpulse-simple -lpulse strip ../../../bin/OpenLara --strip-all --remove-section=.comment --remove-section=.note