Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-s168 committed Apr 16, 2024
1 parent b7fe440 commit 463d202
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/sh
set -e
FILES="main.c ir/opt/*.c ir/*.c common/*.c ir/transform/*.c"
CFLAGS="-Wall -Wextra -Wno-unused -Wpedantic -Werror -std=c11"

# shellcheck disable=SC2086

if [ "$1" == "analyze" ]; then
if [[ $1 == "analyze" ]]; then
echo "analyzing..."
clang --analyze -Xclang -analyzer-werror $CFLAGS $FILES
else
Expand Down

0 comments on commit 463d202

Please sign in to comment.