DEADSOFTWARE

add clang support
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Wed, 28 Aug 2019 16:41:32 +0000 (19:41 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Wed, 28 Aug 2019 16:41:32 +0000 (19:41 +0300)
make.sh

diff --git a/make.sh b/make.sh
index 2b505534d7e5b7394a67b66bc31f8fe516daea6d..4551cab106ef4fa6eef1a657cb240806f43fc25e 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -124,6 +124,7 @@ cpfront_link() {
     local _cc_cflags=
     case "$CC" in
       *gcc)  _cc_cflags="-std=c89 -Wno-int-conversion -Wno-int-to-pointer-cast -Wno-incompatible-pointer-types -Wno-implicit-function-declaration" ;;
+      clang|clang-*)  _cc_cflags="-std=c89 -Wno-int-conversion -Wno-incompatible-pointer-types -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses -Wno-pointer-sign -Wno-unused-value -Wno-return-type" ;;
       *)  _cc_cflags="" ;;
     esac
     local _cpu_cflags=