Skip to content

Commit 4a1994b

Browse files
committed
selfcheck.sh: also run with system includes made available [skip ci]
1 parent 76df97f commit 4a1994b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

selfcheck.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@
33
output=$(./simplecpp simplecpp.cpp -e 2>&1)
44
ec=$?
55
echo "$output" | grep -v 'Header not found: <'
6-
exit $ec
6+
exit $ec
7+
8+
# TODO: also run with libc++
9+
gcc_ver=$(gcc -dumpversion)
10+
./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"

0 commit comments

Comments
 (0)