Skip to content

Commit 9e58dc3

Browse files
[NFC][LLVM] Remove duplication for zstd cmake config (#20444)
I suspect the duplication happened because I first made the change to intel/llvm and then upstream, which brought the change back again to intel/llvm
1 parent b2c82ba commit 9e58dc3

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

llvm/cmake/config-ix.cmake

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -209,18 +209,6 @@ if(LLVM_ENABLE_ZSTD)
209209
endif()
210210
endif()
211211

212-
# If LLVM_USE_STATIC_ZSTD is specified, make sure we enable zstd only if static
213-
# libraries are found.
214-
if(LLVM_USE_STATIC_ZSTD AND NOT TARGET zstd::libzstd_static)
215-
# Fail if LLVM_ENABLE_ZSTD is FORCE_ON.
216-
if(LLVM_ENABLE_ZSTD STREQUAL FORCE_ON)
217-
message(FATAL_ERROR "Failed to find static zstd libraries, but LLVM_USE_STATIC_ZSTD=ON and LLVM_ENABLE_ZSTD=FORCE_ON.")
218-
endif()
219-
set(LLVM_ENABLE_ZSTD OFF)
220-
else()
221-
set(LLVM_ENABLE_ZSTD ${zstd_FOUND})
222-
endif()
223-
224212
if(LLVM_ENABLE_LIBXML2)
225213
if(LLVM_ENABLE_LIBXML2 STREQUAL FORCE_ON)
226214
find_package(LibXml2 REQUIRED)

0 commit comments

Comments
 (0)