Skip to content

Commit

Permalink
kefir does not understand -g or -w
Browse files Browse the repository at this point in the history
  • Loading branch information
ibara committed Aug 11, 2023
1 parent 0f3cd2e commit f067067
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,9 @@ EOF
}

wflagcheck() {
if [ "x$cc" = "xkefir" ] ; then
return 0
fi
cat << EOF > conftest.c
int main(void){return 0;}
EOF
Expand Down Expand Up @@ -996,6 +999,11 @@ if [ "x$cc" = "xvc" ] ; then
cflags="-g -O=990 -DEMACS -DVI"
fi

if [ "x$cc" = "xkefir" ] ; then
echo "using kefir, setting CFLAGS to -O2"
cflags="-O2 -DEMACS -DVI"
fi

if [ "x$cflags" = "x-DEMACS -DVI" ] ; then
printf "checking if the compiler accepts -g -O2... "
defaultcflagscheck
Expand Down

0 comments on commit f067067

Please sign in to comment.