mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-08 11:02:24 +01:00
test: Do not use /dev/null as compiler output file
Some ld(1) implementations, such as the one on AIX, do not support using /dev/null as the output filename for the compiled object. Use an actual filename that we will then clean up.
This commit is contained in:
parent
426bf45278
commit
90b7f3aeba
@ -18,8 +18,9 @@ int main() { return 0; }
|
|||||||
SOURCE
|
SOURCE
|
||||||
|
|
||||||
echo "testing header $inc"
|
echo "testing header $inc"
|
||||||
run $CC -isystem "$incdir" $CPPFLAGS headers-overlay-gen.c -o /dev/null
|
run $CC -isystem "$incdir" $CPPFLAGS headers-overlay-gen.c -o headers-overlay
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
rm -f headers-overlay
|
||||||
rm -f headers-overlay-gen*
|
rm -f headers-overlay-gen*
|
||||||
done
|
done
|
||||||
|
@ -17,8 +17,9 @@ int main() { return 0; }
|
|||||||
SOURCE
|
SOURCE
|
||||||
|
|
||||||
echo "testing header $inc"
|
echo "testing header $inc"
|
||||||
run $CC -isystem "$incdir" $CPPFLAGS headers-system-gen.c -o /dev/null
|
run $CC -isystem "$incdir" $CPPFLAGS headers-system-gen.c -o headers-system
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
rm -f headers-system
|
||||||
rm -f headers-system-gen.*
|
rm -f headers-system-gen.*
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user