File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ if [ "$cxx_type" = "g++" ]; then
5656elif [ " $cxx_type " = " clang" ]; then
5757 clang_ver=$( $CXX -dumpversion)
5858 clang_ver=${clang_ver%% .* }
59+ find /usr/include -name cctype
60+ find /usr/lib -name cctype
5961 defs=
6062 defs=" $defs -D__BYTE_ORDER__"
6163 defs=" $defs -D__linux__"
@@ -90,13 +92,14 @@ elif [ "$cxx_type" = "Apple" ]; then
9092 if [ ! -d " $xcode_path " ]; then
9193 xcode_path=" /Applications/Xcode_15.2.app"
9294 fi
93- find $xcode_path -name endian.h
95+ sdk_path=" $xcode_path /Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
96+ find $sdk_path -name endian.h
9497 defs=
9598 defs=" $defs -D__BYTE_ORDER__"
9699 defs=" $defs -D__APPLE__"
97100 inc=
98- inc=" $inc -I$xcode_path /Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /usr/include"
99- inc=" $inc -I$xcode_path /Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /usr/include/c++/v1"
101+ inc=" $inc -I$sdk_path /usr/include"
102+ inc=" $inc -I$sdk_path /usr/include/c++/v1"
100103 ./simplecpp simplecpp.cpp -e -f -std=gnu++11 $defs $inc
101104 ec=$?
102105 if [ $ec -ne 0 ]; then
You can’t perform that action at this time.
0 commit comments