[libclc] [llvm] [libclc] Refactor build system to allow in-tree builds (PR #87622)
Fraser Cormack via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 25 01:34:59 PDT 2024
================
@@ -167,12 +181,14 @@ install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libclc.pc DESTINATION "${CMAKE_INSTAL
install( DIRECTORY generic/include/clc DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" )
if( ENABLE_RUNTIME_SUBNORMAL )
- add_library( subnormal_use_default STATIC
- generic/lib/subnormal_use_default.ll )
- add_library( subnormal_disable STATIC
- generic/lib/subnormal_disable.ll )
- install( TARGETS subnormal_use_default subnormal_disable ARCHIVE
- DESTINATION "${CMAKE_INSTALL_DATADIR}/clc" )
+ foreach( file subnormal_use_default subnormal_disable )
+ link_bc(
+ TARGET ${file}
+ INPUTS ${PROJECT_SOURCE_DIR}/generic/lib/${file}.ll
+ )
+ install( FILES $<TARGET_PROPERTY:${file},TARGET_FILE> ARCHIVE
----------------
frasercrmck wrote:
See #109926
https://github.com/llvm/llvm-project/pull/87622
More information about the llvm-commits
mailing list