Skip to content

Commit 90ffe5c

Browse files
committed
mingw
1 parent 0942b49 commit 90ffe5c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

selfcheck.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ if [ "$cxx_type" = "g++" ] || [ "$cxx_type" = "g++.exe" ]; then
3030
defs="$defs -D__has_builtin(x)=(1)"
3131
defs="$defs -D__has_cpp_attribute(x)=(1)"
3232
defs="$defs -D__has_attribute(x)=(1)"
33+
find -name cctype /usr/include
3334
# some required include paths might differ per distro
3435
inc=
3536
inc="$inc -I/usr/include"
@@ -65,7 +66,7 @@ elif [ "$cxx_type" = "clang" ]; then
6566
defs="$defs -D__has_attribute(x)=(0)"
6667
defs="$defs -D__has_cpp_attribute(x)=(0)"
6768
defs="$defs -D__has_include_next(x)=(0)"
68-
defs="$defs -D__building_module(x)=(ß)" # MSYS
69+
defs="$defs -D__building_module(x)=(0)" # MSYS
6970

7071
# some required include paths might differ per distro
7172
inc=
@@ -76,7 +77,9 @@ elif [ "$cxx_type" = "clang" ]; then
7677
inc="$inc -I/usr/lib/llvm-$clang_ver/include/c++/v1"
7778
fi
7879
inc="$inc -I/usr/include"
79-
inc="$inc -I/usr/lib/clang/$clang_ver/include"
80+
if [ -d "/usr/lib/clang/$clang_ver/include" ]; then # Manjaro, ubuntu
81+
inc="$inc -I/usr/lib/clang/$clang_ver/include"
82+
fi
8083
if [ -d "/usr/include/x86_64-linux-gnu" ]; then
8184
inc="$inc -I/usr/include/x86_64-linux-gnu"
8285
fi

0 commit comments

Comments
 (0)