File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ if [ -z "$CXX" ]; then
1414 exit 0
1515fi
1616
17- # on macOS gcc is an alias for clang
1817cxx_type=$( $CXX --version | head -1 | cut -d' ' -f1)
1918if [ " $cxx_type " = " g++" ]; then
2019 gcc_ver=$( $CXX -dumpversion)
@@ -24,16 +23,17 @@ if [ "$cxx_type" = "g++" ]; then
2423 exit $ec
2524 fi
2625elif [ " $cxx_type " = " clang" ]; then
27- # clang_ver=$(clang -dumpversion)
26+ # clang_ver=$($CXX -dumpversion)
2827 # clang_ver=${clang_ver%%.*}
2928 ./simplecpp simplecpp.cpp -e -f -std=gnu++11 -D__BYTE_ORDER__ -I" /usr/include/c++/v1"
3029 ec=$?
3130 if [ $ec -ne 0 ]; then
3231 exit $ec
3332 fi
3433elif [ " $cxx_type " = " Apple" ]; then
35- # clang_ver=$(clang -dumpversion)
34+ # clang_ver=$($CXX -dumpversion)
3635 # clang_ver=${clang_ver%%.*}
36+ find /usr/include -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