Skip to content

Commit 980cd86

Browse files
committed
[libclc] Stop installing CLC headers
The libclc headers are an implementation detail and are not intended to be used by others as OpenCL headers. The only artifacts of libclc we want to publish are the LLVM bytecode libraries. As the headers have been incidentally broken by recent changes, this commit takes the step to stop installing the headers at all. Downstreams can use clang's own OpenCL headers, and/or its -fdeclare-opencl-builtins flag. Fixes #119967.
1 parent 7647f47 commit 980cd86

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

libclc/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ set( tahiti_aliases pitcairn verde oland hainan bonaire kabini kaveri hawaii
222222
# pkg-config file
223223
configure_file( libclc.pc.in libclc.pc @ONLY )
224224
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libclc.pc DESTINATION "${CMAKE_INSTALL_DATADIR}/pkgconfig" )
225-
install( DIRECTORY generic/include/clc DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" )
226225

227226
if( ENABLE_RUNTIME_SUBNORMAL )
228227
foreach( file IN ITEMS subnormal_use_default subnormal_disable )

libclc/libclc.pc.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@
21
libexecdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DATADIR@/clc
32

43
Name: libclc
54
Description: Library requirements of the OpenCL C programming language
65
Version: @PROJECT_VERSION@
7-
Cflags: -I${includedir}
86
Libs: -L${libexecdir}

0 commit comments

Comments
 (0)