We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6fc298 commit e9323fbCopy full SHA for e9323fb
1 file changed
selfcheck.sh
@@ -15,7 +15,7 @@ if [ -z "$CXX" ]; then
15
fi
16
17
cxx_type=$($CXX --version | head -1 | cut -d' ' -f1)
18
-if [ "$cxx_type" = "g++" ] || [ "$cxx_type" = "Ubuntu" ]; then
+if [ "$cxx_type" = "g++" ] || [ "$cxx_type" = "Ubuntu" ]; then # on ubuntu 22.04 there is an "Ubuntu" prefix
19
gcc_ver=$($CXX -dumpversion)
20
./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"
21
ec=$?
0 commit comments