File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def do_configure(args):
6464
6565 sycl_enable_xpti_tracing = "ON"
6666 xpti_enable_werror = "OFF"
67- llvm_enable_zstd = "OFF "
67+ llvm_enable_zstd = "ON "
6868
6969 if sys .platform != "darwin" :
7070 sycl_enabled_backends .append ("level_zero" )
@@ -134,8 +134,6 @@ def do_configure(args):
134134
135135 # For clang-format, clang-tidy and code coverage
136136 llvm_enable_projects += ";clang-tools-extra;compiler-rt"
137- # Build with zstd enabled on CI.
138- llvm_enable_zstd = "ON"
139137 if sys .platform != "darwin" :
140138 # libclc is required for CI validation
141139 libclc_enabled = True
Original file line number Diff line number Diff line change @@ -157,7 +157,14 @@ if(LLVM_ENABLE_ZSTD)
157157 find_package (zstd QUIET )
158158 endif ()
159159endif ()
160+
161+ # If LLVM_USE_STATIC_ZSTD is specified, make sure we enable zstd only if static
162+ # libraries are found.
163+ if (LLVM_USE_STATIC_ZSTD AND NOT TARGET zstd::libzstd_static)
164+ set (LLVM_ENABLE_ZSTD OFF )
165+ else ()
160166set (LLVM_ENABLE_ZSTD ${zstd_FOUND} )
167+ endif ()
161168
162169if (LLVM_ENABLE_LIBXML2)
163170 if (LLVM_ENABLE_LIBXML2 STREQUAL FORCE_ON)
You can’t perform that action at this time.
0 commit comments