File: compile-headers

package info (click to toggle)
ocl-icd 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 780 kB
  • sloc: ansic: 7,233; ruby: 835; makefile: 214; sh: 10
file content (12 lines) | stat: -rw-r--r-- 316 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e
set -x

for h in $(dpkg -L ocl-icd-dev | grep '\.h$' | sed s%/usr/include/%%)
do
	for std in '' 100 110 120 200 210 220 300
	do
		echo "#include <$h>" | gcc -x c ${std:+-DCL_TARGET_OPENCL_VERSION=$std} -c -
		echo "#include <$h>" | g++ -x c++ ${std:+-DCL_TARGET_OPENCL_VERSION=$std} -c -
	done
done