Add c++ compiler test for stat.h

This commit is contained in:
Christoph Niethammer 2021-01-27 10:06:41 +00:00
parent 3098556919
commit 240156d895
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,6 @@
#define _GNU_SOURCE 1
#include <sys/stat.h>
int main()
{
return 0;
}

View file

@ -23,6 +23,12 @@ compiler_version_cmd() {
$cmd
}
compiler_check_stat_h() {
cmd="CC stat_h.cpp"
echo $cmd
$cmd
}
compiler_check_stdexcept() {
cmd="CC stdexcept.cpp"
echo $cmd
@ -59,6 +65,7 @@ for compiler in $compilers; do
compiler_version_cmd $compiler 2>>$logfile >>$logfile || error=1
compiler_check_helloworld $compiler 2>>$logfile >>$logfile || error=1
compiler_check_stdexcept $compiler 2>> $logfile >>$logfile || error=1
compiler_check_stat_H $compiler 2>> $logfile >>$logfile || error=1
if [ $error != 0 ] ; then
echo "failed :-("
echo "Error msg:"