-
Notifications
You must be signed in to change notification settings - Fork 182
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
modules/zstd: build libzstd #1166
Conversation
Do we need to those? It sounds like we would motsly need to drive (software)-zstd from C++ tests to compare data with DSLX/IR simulation (and not from the shell or bazel rules). |
They were added for our convenience during development but we can remove those two targets from the build file. Later, we will extend the build rules to expose internal ZSTD headers because we need them for more advanced tests. |
a4d9ebd
to
c951741
Compare
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.
can you squash the commits, and rename the PR (without the part 1)
also if you rebase, that should get rid of the macosx continuous integration failure which is already fixed at HEAD (and it only runs nightly now) |
c951741
to
c5d630a
Compare
@@ -286,3 +286,11 @@ def load_external_repositories(): | |||
"https://github.com/nlohmann/json/archive/refs/tags/v3.10.2.tar.gz", | |||
], | |||
) | |||
|
|||
http_archive( |
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.
Could you add a comment saying the date this was fresh?
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.
Added comment with release info and dependency update date
], | ||
strip_include_prefix = "lib", | ||
linkopts = [ | ||
"-pthread", |
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.
Is this necessary? I'd have thought not
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.
It looks like disabling multithread builds does not affect our tests which use zstd library. I've updated the build rule to build library without multithread support.
f364507
to
75a6a22
Compare
This commit enables building zstd library in version 1.4.7 in the XLS repository. The sources of the library come from the official release of zstd on Meta's GitHub. Internal-tag: #[49966] Signed-off-by: Robert Winkler <[email protected]>
Internal-tag: [#49966] Signed-off-by: Pawel Czarnecki <[email protected]>
Disable building llvm with zstd to avoid conflicts with newly-added zstd library. It seems that llvm_zstd is not necessary for correct llvm operation. Internal-tag: #[49966] Signed-off-by: Robert Winkler <[email protected]>
This PR adds zstd library to the XLS framework. It exposes the following targets:
Additionally, we remove zstd from llvm build to avoid linking conflicts with newly-added zstd library. It seems that llvm_zstd is not necessary for correct llvm operation.