diff options
-rwxr-xr-x | build.sh | 3 | ||||
-rwxr-xr-x | release.sh | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,8 @@ #!/bin/sh +script_dir=$(dirname "$0") +cd "$script_dir" + CFLAGS="-O3 -s -flto -Wall -Wextra -DNDEBUG" [ -z "$RELEASE" ] && CFLAGS="-O0 -g3 -Wall -Wextra"; CC=cc @@ -1,3 +1,6 @@ #!/bin/sh +script_dir=$(dirname "$0") +cd "$script_dir" + RELEASE=1 ./build.sh |