Skip to content

Commit f6fc298

Browse files
committed
s
1 parent 1de9fbc commit f6fc298

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

selfcheck.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [ -z "$CXX" ]; then
1515
fi
1616

1717
cxx_type=$($CXX --version | head -1 | cut -d' ' -f1)
18-
if [ "$cxx_type" = "g++" ]; then
18+
if [ "$cxx_type" = "g++" ] || [ "$cxx_type" = "Ubuntu" ]; then
1919
gcc_ver=$($CXX -dumpversion)
2020
./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"
2121
ec=$?
@@ -33,7 +33,7 @@ elif [ "$cxx_type" = "clang" ]; then
3333
elif [ "$cxx_type" = "Apple" ]; then
3434
#clang_ver=$($CXX -dumpversion)
3535
#clang_ver=${clang_ver%%.*}
36-
find /usr/include -name cctype
36+
find /Applications -name cctype
3737
./simplecpp simplecpp.cpp -e -f -std=gnu++11
3838
ec=$?
3939
if [ $ec -ne 0 ]; then

0 commit comments

Comments
 (0)