diff options
| author | dautor <karlo98.m@gmail.com> | 2024-11-19 18:43:02 +0100 |
|---|---|---|
| committer | dautor <karlo98.m@gmail.com> | 2024-11-19 18:43:02 +0100 |
| commit | 1e8c79f75bfff6cf1cadfd3a02d04ab6c91f09b3 (patch) | |
| tree | 22079a8d15153dc459febe179ac9c201336bbf98 /build.sh | |
| parent | f1e579bc427df418af96da61498fe0cdb4cecb69 (diff) | |
Add -v flag0.1
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,9 +1,11 @@ #!/bin/sh set -e +version="$(git describe --tags --first-parent --abbrev=40 --long --dirty --always)" + CC=cc SAN="$SAN -fsanitize=address -fsanitize=undefined -fsanitize=leak" -CFLAGS="$CFLAGS -g -O0 -DENABLE_ASSERT=1 -DENABLE_DEBUG=1" +CFLAGS="$CFLAGS -g -O0 -DENABLE_ASSERT=1 -DENABLE_DEBUG=1 -DVERSION=\"$version\"" CFLAGS="$CFLAGS -Wall -Wextra -Weverything -pedantic" CFLAGS="$CFLAGS -Wno-unsafe-buffer-usage -Wno-gnu-zero-variadic-macro-arguments -Wno-format-non-iso -Wno-declaration-after-statement -Wno-padded -Wno-covered-switch-default -Wno-gnu-empty-struct -Wno-c++-compat -Wno-alloca -Wno-zero-length-array" |
