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,7 @@ 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
5960 defs=
6061 defs=" $defs -D__BYTE_ORDER__"
6162 defs=" $defs -D__linux__"
@@ -67,12 +68,14 @@ elif [ "$cxx_type" = "clang" ]; then
6768 defs=" $defs -D__has_cpp_attribute(x)=(0)"
6869 defs=" $defs -D__has_include_next(x)=(0)"
6970 defs=" $defs -D__has_builtin(x)=(1)"
70- cxx_inc=" -I/usr/include/c++/v1"
71- if [ ! -d " $cxx_inc " ]; then
72- cxx_inc=" -I/usr/lib/llvm-$clang_ver /include/c++/v1"
73- fi
7471 # some required include paths might differ per distro
75- inc=$cxx_inc
72+ inc=
73+ if [ -d /usr/include/c++/v1 ]; then
74+ inc=" $inc -I/usr/include/c++/v1"
75+ fi
76+ # if [ ! -d "$cxx_inc" ]; then
77+ # cxx_inc="-I/usr/lib/llvm-$clang_ver/include/c++/v1"
78+ # fi
7679 inc=" $inc -I/usr/include"
7780 inc=" $inc -I/usr/lib/clang/$clang_ver /include"
7881 if [ -d " /usr/include/x86_64-linux-gnu" ]; then
You can’t perform that action at this time.
0 commit comments