We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent befdece commit cc8a7b7Copy full SHA for cc8a7b7
IGC/cmake/igc_find_liblldELF.cmake
@@ -136,6 +136,17 @@ elseif(IGC_BUILD__LLVM_PREBUILDS)
136
target_link_libraries(lldELF INTERFACE ZLIB::ZLIB)
137
endif()
138
139
+ if(LLVM_ENABLE_ZSTD)
140
+ find_package(zstd)
141
+ if(zstd_LIBRARY MATCHES "${zstd_SHARED_LIBRARY_SUFFIX}$")
142
+ target_link_libraries(lldELF INTERFACE zstd::libzstd_shared)
143
+ elseif(zstd_STATIC_LIBRARY MATCHES "${zstd_STATIC_LIBRARY_SUFFIX}$")
144
+ target_link_libraries(lldELF INTERFACE zstd::libzstd_static)
145
+ else()
146
+ message(FATAL_ERROR "Cannot find zstd library. Please install the missing library.")
147
+ endif()
148
149
+
150
if(NOT DEFINED IGC_OPTION__LLDELF_H_DIR)
151
set(IGC_OPTION__LLDELF_H_DIR ${LLVM_ROOT})
152
0 commit comments