mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-23 06:32:05 +03:00
fix invalid C in new trycppif tests in configure script
an empty program is not valid and would be reasonable grounds for the compiler to give an error, which would break these tests.
This commit is contained in:
parent
3e7f186ea1
commit
df065781ee
3
configure
vendored
3
configure
vendored
@ -56,7 +56,8 @@ while eval "fnmatch '*/' \"\${$1}\"" ; do eval "$1=\${$1%/}" ; done
|
||||
|
||||
trycppif () {
|
||||
printf "checking preprocessor condition %s... " "$1"
|
||||
echo "#if $1" > "$tmpc"
|
||||
echo "typedef int x;" > "$tmpc"
|
||||
echo "#if $1" >> "$tmpc"
|
||||
echo "#error yes" >> "$tmpc"
|
||||
echo "#endif" >> "$tmpc"
|
||||
if $CC $2 -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then
|
||||
|
Loading…
Reference in New Issue
Block a user