Skip to content

Commit 11b8938

Browse files
frasercrmckllvmbot
authored andcommitted
[libclc] Stop installing CLC headers (#126908)
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. (cherry picked from commit a2b0576)
1 parent 24a30da commit 11b8938

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
@@ -226,7 +226,6 @@ set( tahiti_aliases pitcairn verde oland hainan bonaire kabini kaveri hawaii
226226
# pkg-config file
227227
configure_file( libclc.pc.in libclc.pc @ONLY )
228228
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libclc.pc DESTINATION "${CMAKE_INSTALL_DATADIR}/pkgconfig" )
229-
install( DIRECTORY generic/include/clc DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" )
230229

231230
if( ENABLE_RUNTIME_SUBNORMAL )
232231
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)