-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixing fuzzing build after composer splitting (#1317)
# Description After the splitting PR the fuzzing build was broken. This PR fixes that issue. It also adds the fuzzing build to CI so that such breaking changes get detected in the future # Checklist: - [x] I have reviewed my diff in github, line by line. - [x] Every change is related to the PR description. - [ ] I have [linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) this pull request to the issue(s) that it resolves. - [ ] There are no unexpected formatting changes, superfluous debug logs, or commented-out code. - [ ] The branch has been merged or rebased against the head of its merge target. - [x] I'm happy for the PR to be merged at the reviewer's next convenience. --------- Co-authored-by: ludamad <[email protected]>
- Loading branch information
Showing
16 changed files
with
290 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
circuits/cpp/barretenberg/cpp/dockerfiles/Dockerfile.x86_64-linux-clang-fuzzing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM alpine:3.18 AS builder | ||
RUN apk update && \ | ||
apk upgrade && \ | ||
apk add --no-cache \ | ||
build-base \ | ||
clang16 \ | ||
compiler-rt \ | ||
openmp-dev \ | ||
cmake \ | ||
ninja \ | ||
git \ | ||
curl \ | ||
perl | ||
|
||
WORKDIR /usr/src/barretenberg/cpp | ||
|
||
COPY . . | ||
# Build the entire project, as we want to check everything builds under clang | ||
RUN cmake --preset fuzzing && cmake --build --preset fuzzing | ||
|
||
FROM alpine:3.18 | ||
RUN apk update && apk add openmp | ||
COPY --from=builder /usr/src/barretenberg/cpp/srs_db /usr/src/barretenberg/cpp/srs_db |
22 changes: 12 additions & 10 deletions
22
circuits/cpp/barretenberg/cpp/src/barretenberg/bb/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
add_executable( | ||
bb | ||
main.cpp | ||
) | ||
if (NOT(FUZZING)) | ||
add_executable( | ||
bb | ||
main.cpp | ||
) | ||
|
||
target_link_libraries( | ||
bb | ||
PRIVATE | ||
barretenberg | ||
env | ||
) | ||
target_link_libraries( | ||
bb | ||
PRIVATE | ||
barretenberg | ||
env | ||
) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 13 additions & 11 deletions
24
circuits/cpp/barretenberg/cpp/src/barretenberg/grumpkin_srs_gen/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
add_executable( | ||
grumpkin_srs_gen | ||
grumpkin_srs_gen.cpp | ||
) | ||
if (NOT(FUZZING)) | ||
add_executable( | ||
grumpkin_srs_gen | ||
grumpkin_srs_gen.cpp | ||
) | ||
|
||
target_link_libraries( | ||
grumpkin_srs_gen | ||
PRIVATE | ||
srs | ||
ecc | ||
crypto_sha256 | ||
) | ||
target_link_libraries( | ||
grumpkin_srs_gen | ||
PRIVATE | ||
srs | ||
ecc | ||
crypto_sha256 | ||
) | ||
endif() |
22 changes: 12 additions & 10 deletions
22
circuits/cpp/barretenberg/cpp/src/barretenberg/solidity_helpers/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
barretenberg_module(stdlib_solidity_helpers plonk proof_system transcript crypto_pedersen_commitment polynomials crypto_sha256 ecc crypto_blake3s stdlib_primitives stdlib_pedersen_commitment stdlib_blake3s stdlib_blake2s srs) | ||
|
||
add_executable(solidity_key_gen key_gen.cpp) | ||
if (NOT(FUZZING)) | ||
add_executable(solidity_key_gen key_gen.cpp) | ||
|
||
add_executable(solidity_proof_gen proof_gen.cpp) | ||
add_executable(solidity_proof_gen proof_gen.cpp) | ||
|
||
target_link_libraries( | ||
solidity_key_gen | ||
stdlib_solidity_helpers | ||
) | ||
target_link_libraries( | ||
solidity_key_gen | ||
stdlib_solidity_helpers | ||
) | ||
|
||
target_link_libraries( | ||
solidity_proof_gen | ||
stdlib_solidity_helpers | ||
) | ||
target_link_libraries( | ||
solidity_proof_gen | ||
stdlib_solidity_helpers | ||
) | ||
endif() |
Oops, something went wrong.