Skip to content

Commit dd1cc3f

Browse files
committed
selfcheck.sh: also run with system includes made available [skip ci]
1 parent d0f2b99 commit dd1cc3f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

selfcheck.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,13 @@ if [ $ec -ne 0 ]; then
88
if [ ! -z "$errors" ]; then
99
exit $ec
1010
fi
11+
fi
12+
13+
gcc_ver=$(gcc -dumpversion)
14+
./simplecpp simplecpp.cpp -e -f -D__GNUC__ -D__STDC__ -D__STDC_HOSTED__ -D__CHAR_BIT__=8 -I"/usr/include" -I"/usr/include/linux" -I"/usr/include/c++/$gcc_ver" -I"/usr/include/c++/$gcc_ver/x86_64-pc-linux-gnu" -I"/usr/lib64/gcc/x86_64-pc-linux-gnu/$gcc_ver/include"
15+
16+
if [ -d "/usr/include/c++/v1" ]; then
17+
#clang_ver=$(clang -dumpversion)
18+
#clang_ver=${clang_ver%%.*}
19+
./simplecpp simplecpp.cpp -e -f -D__BYTE_ORDER__ -I"/usr/include/c++/v1"
1120
fi

0 commit comments

Comments
 (0)