summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-01-08 11:19:37 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-01-08 11:19:37 -0500
commit71c7686269a7e854ec5672e1848f6ee39167884c (patch)
tree799a22d8621691ef73a0c66d482761d85c9fbb9e /build.sh
parentfea7cb867ec193f2af3a8f61fc8d14c97b85ba83 (diff)
more importing (also turns out export is a keyword in c++)
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index da042bd..52831a1 100755
--- a/build.sh
+++ b/build.sh
@@ -10,9 +10,13 @@ fi
ADDITIONAL_FLAGS="$CFLAGS -Wno-unused-function"
if [ "$CC" = "clang" ]; then
- WARNINGS='-Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wimplicit-fallthrough'
+ WARNINGS='-Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wimplicit-fallthrough -Wno-missing-braces'
elif [ "$CC" = "gcc" ]; then
WARNINGS='-Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wno-pointer-to-int-cast'
+elif [ "$CC" = "tcc" ]; then
+ WARNINGS='-w'
+elif [ "$CC" = "g++" ]; then
+ WARNINGS='-w -fpermissive'
else
WARNINGS=''
fi