File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,12 @@ elif [ "$cxx_type" = "clang" ]; then
3333 if [ ! -d " $cxx_inc " ]; then
3434 cxx_inc=" /usr/lib/llvm-$clang_ver /include/c++/v1"
3535 fi
36- ./simplecpp simplecpp.cpp -e -f -std=gnu++11 -D__BYTE_ORDER__ -D__linux__ -I" $cxx_inc " -I" /usr/include" -I" /usr/include/x86_64-linux-gnu"
36+ # some required include paths might differ per distro
37+ extra_inc=
38+ if [ -d " /usr/include/x86_64-linux-gnu" ]; then
39+ extra_inc=" $extra_inc -I/usr/include/x86_64-linux-gnu"
40+ fi
41+ ./simplecpp simplecpp.cpp -e -f -std=gnu++11 -D__BYTE_ORDER__ -D__linux__ -D" __has_feature(x)=(1)" -D" __has_extension(x)=(1)" -D" __has_attribute(x)=(0)" -D" __has_cpp_attribute(x)=(0)" -D" __has_include_next(x)=(0)" -D" __has_builtin(x)=(1)" -I" $cxx_inc " -I" /usr/include" -I" /usr/lib/clang/$clang_ver /include" $extra_inc
3742 ec=$?
3843 if [ $ec -ne 0 ]; then
3944 exit $ec
You can’t perform that action at this time.
0 commit comments