We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e342e8b commit 9347a72Copy full SHA for 9347a72
1 file changed
selfcheck.sh
@@ -26,10 +26,15 @@ if [ "$cxx_type" = "g++" ]; then
26
exit $ec
27
fi
28
elif [ "$cxx_type" = "clang" ]; then
29
- #clang_ver=$($CXX -dumpversion)
30
- #clang_ver=${clang_ver%%.*}
+ clang_ver=$($CXX -dumpversion)
+ clang_ver=${clang_ver%%.*}
31
find /usr/include -name cctype
32
- ./simplecpp simplecpp.cpp -e -f -std=gnu++11 -D__BYTE_ORDER__ -D__linux__ -I"/usr/include/c++/v1"
+ cxx_inc="/usr/include/c++/v1"
33
+ if [ -d "$cxx_inc" ]; then
34
+ else
35
+ cxx_inc="/usr/lib/llvm-$clang_ver/include/c++/v1"
36
+ fi
37
+ ./simplecpp simplecpp.cpp -e -f -std=gnu++11 -D__BYTE_ORDER__ -D__linux__ -I"$cxx_inc"
38
ec=$?
39
if [ $ec -ne 0 ]; then
40
0 commit comments