-
Notifications
You must be signed in to change notification settings - Fork 794
[SYCL] Fix zstd build when static zstd libraries are not found #15856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -157,7 +157,14 @@ if(LLVM_ENABLE_ZSTD) | |
| find_package(zstd QUIET) | ||
| endif() | ||
| endif() | ||
|
|
||
| # If LLVM_USE_STATIC_ZSTD is specified, make sure we enable zstd only if static | ||
| # libraries are found. | ||
| if(LLVM_USE_STATIC_ZSTD AND NOT TARGET zstd::libzstd_static) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sorry what is
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, |
||
| set(LLVM_ENABLE_ZSTD OFF) | ||
| else() | ||
| set(LLVM_ENABLE_ZSTD ${zstd_FOUND}) | ||
| endif() | ||
|
|
||
| if(LLVM_ENABLE_LIBXML2) | ||
| if(LLVM_ENABLE_LIBXML2 STREQUAL FORCE_ON) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll create a bug report and PR to upstream this change, if approved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For upstreaming:
issue: llvm/llvm-project#113583
PR: llvm/llvm-project#113584