Skip to content

Commit 2760f96

Browse files
committed
s
1 parent 161c364 commit 2760f96

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

selfcheck.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ if [ "$cxx_type" = "g++" ]; then
2828
elif [ "$cxx_type" = "clang" ]; then
2929
clang_ver=$($CXX -dumpversion)
3030
clang_ver=${clang_ver%%.*}
31-
find /usr/include -name features.h
32-
find /usr/include -name endian.h
31+
find /usr/include -name bits/wordsize.h
3332
cxx_inc="/usr/include/c++/v1"
3433
if [ ! -d "$cxx_inc" ]; then
3534
cxx_inc="/usr/lib/llvm-$clang_ver/include/c++/v1"
@@ -40,11 +39,12 @@ elif [ "$cxx_type" = "clang" ]; then
4039
exit $ec
4140
fi
4241
elif [ "$cxx_type" = "Apple" ]; then
43-
#clang_ver=$($CXX -dumpversion)
44-
#clang_ver=${clang_ver%%.*}
4542
find /Applications -name cctype
46-
# 16.1 is a Xcode version common to all used platforms
47-
./simplecpp simplecpp.cpp -e -f -std=gnu++11 -D__BYTE_ORDER__ -D__APPLE__ -I"/Applications/Xcode_16.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include" -I"/Applications/Xcode_16.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1"
43+
xcode_path="/Applications/Xcode_16.4.app"
44+
if [ ! -d "$xcode_path" ]; then
45+
xcode_path="/Applications/Xcode_16.1.app"
46+
fi
47+
./simplecpp simplecpp.cpp -e -f -std=gnu++11 -D__BYTE_ORDER__ -D__APPLE__ -I"$xcode_path/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include" -I"$xcode_path/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1"
4848
ec=$?
4949
if [ $ec -ne 0 ]; then
5050
exit $ec

0 commit comments

Comments
 (0)