Skip to content

Commit 3a738d6

Browse files
committed
s
1 parent f43124c commit 3a738d6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

selfcheck.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ if [ -z "$CXX" ]; then
1414
exit 0
1515
fi
1616

17-
cxx_type=$($CXX --version | head -1 | cut -d' ' -f1)
1817
$CXX --version
18+
cxx_type=$($CXX --version | head -1 | cut -d' ' -f1)
19+
if [ "$cxx_type" = "Ubuntu" ]; then
20+
cxx_type=$($CXX --version | head -2 | cut -d' ' -f1)
21+
fi
1922
echo cxx_type=$cxx_type
2023
if [ "$cxx_type" = "g++" ]; then
2124
gcc_ver=$($CXX -dumpversion)
2225
find /usr/include -name cctype
26+
find /usr/include -name c++config.h
2327
./simplecpp simplecpp.cpp -e -f -std=gnu++11 -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"
2428
ec=$?
2529
if [ $ec -ne 0 ]; then

0 commit comments

Comments
 (0)