File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if [ -z "$CXX" ]; then
1515fi
1616
1717cxx_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
3333elif [ " $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
You can’t perform that action at this time.
0 commit comments