File: compile-headers

package info (click to toggle)
khronos-opencl-clhpp 3.0~2023.02.06-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,640 kB
  • sloc: ansic: 26,445; cpp: 9,958; ruby: 9,564; tcl: 2,925; pascal: 2,280; makefile: 311; python: 220; asm: 133; sh: 20
file content (11 lines) | stat: -rw-r--r-- 293 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -e
set -x

for hpp in $(dpkg -L opencl-clhpp-headers | grep '\.hpp$' | sed s%/usr/include/%%)
do
	for std in '' 100 110 120 200 210 220 300
	do
		echo "#include <$hpp>" | g++ -x c++ ${std:+-DCL_HPP_TARGET_OPENCL_VERSION=$std -DCL_HPP_MINIMUM_OPENCL_VERSION=$std} -c -
	done
done