Debian Codegraph @

debian/tests/compile-headers

raw
1 #!/bin/sh
2 set -e
3 set -x
4
5 for h in $(dpkg -L ocl-icd-dev | grep '\.h$' | sed s%/usr/include/%%)
6 do
7 for std in '' 100 110 120 200 210 220 300
8 do
9 echo "#include <$h>" | gcc -x c ${std:+-DCL_TARGET_OPENCL_VERSION=$std} -c -
10 echo "#include <$h>" | g++ -x c++ ${std:+-DCL_TARGET_OPENCL_VERSION=$std} -c -
11 done
12 done