Skip to content

Commit a2b0576

Browse files
authored
[libclc] Stop installing CLC headers (llvm#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 llvm#119967.
1 parent 8e0a63d commit a2b0576

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

228227
if( ENABLE_RUNTIME_SUBNORMAL )
229228
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)