summaryrefslogtreecommitdiff
path: root/scripts/build_debug.sh
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2025-04-08 01:07:22 +0000
committerLinnnus <[email protected]>2025-04-08 01:07:34 +0000
commit8dd0c4f27aae02dd60f029db4cf03f9902cba26f (patch)
tree829c4bc0917f6615c55ae61d49932179c038c1e5 /scripts/build_debug.sh
feat: Initial commit
At this point we have some allocation routines but no work on the actual language has been done.
Diffstat (limited to 'scripts/build_debug.sh')
-rwxr-xr-xscripts/build_debug.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build_debug.sh b/scripts/build_debug.sh
new file mode 100755
index 0000000..fcdf16a
--- /dev/null
+++ b/scripts/build_debug.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -e -u -o pipefail
+mkdir -p bin/debug
+clang -std=c23 -ggdb -O0 -Wall -Wextra -fsanitize=undefined,address -o bin/debug/sand src/{cli,core}/*.c
+clang -std=c23 -ggdb -O0 -Wall -Wextra -fsanitize=undefined,address -o bin/debug/unit src/{unit,core}/*.c