Skip to content

Commit 433421d

Browse files
committed
s
1 parent 299943d commit 433421d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

selfcheck.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,15 @@ elif [ "$cxx_type" = "clang" ]; then
7676
inc="$inc -I/usr/include/x86_64-linux-gnu"
7777
fi
7878
elif [ "$cxx_type" = "Apple" ]; then
79+
clang_ver=$($CXX -dumpversion)
80+
echo $clang_ver
81+
clang_ver=${clang_ver%%.*}
82+
echo $clang_ver
7983
xcode_path="/Applications/Xcode_16.4.app"
8084
if [ ! -d "$xcode_path" ]; then
8185
xcode_path="/Applications/Xcode_15.2.app"
8286
fi
8387
sdk_path="$xcode_path/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
84-
find $sdk_path -name stdarg.h
85-
find /Applications -name stdarg.h
8688
defs=
8789
defs="$defs -D__BYTE_ORDER__"
8890
defs="$defs -D__APPLE__"
@@ -106,7 +108,6 @@ elif [ "$cxx_type" = "Apple" ]; then
106108
inc="$inc -I$sdk_path/usr/include"
107109
inc="$inc -I$sdk_path/usr/include/i386"
108110
inc="$inc -I$xcode_path/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/$clang_ver/include/"
109-
cat /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h
110111
else
111112
echo "unknown compiler '$cxx_type'"
112113
exit 1

0 commit comments

Comments
 (0)