Skip to content

Commit 827e66a

Browse files
committed
s
1 parent 12a20ef commit 827e66a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

selfcheck.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ if [ "$cxx_type" = "g++" ]; then
5656
elif [ "$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

0 commit comments

Comments
 (0)