diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-16 20:29:37 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-16 20:29:37 +0200 |
commit | e0c3120b46cc95cd9d0cb9bf300ec4f9cff9572a (patch) | |
tree | cfcf995d3cfb4e03cd2c321fafd8b0e62d4a00c0 | |
parent | cfc9ef1cade470f6d2a7ba67c625eb8c11ff2743 (diff) |
-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 |