-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid targeting honk test files when testing is disabled (AztecP…
- Loading branch information
Showing
1 changed file
with
18 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
barretenberg_module(honk numeric ecc srs proof_system transcript) | ||
|
||
# TODO: Re-enable all these warnings once PoC is finished | ||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
target_compile_options( | ||
honk_test_objects | ||
PRIVATE | ||
-Wno-error=unused-variable | ||
) | ||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU") | ||
target_compile_options( | ||
honk_test_objects | ||
PRIVATE | ||
-Wno-error=maybe-uninitialized | ||
-Wno-error=uninitialized | ||
-Wno-error=unused-variable | ||
) | ||
endif() | ||
if(TESTING) | ||
# TODO: Re-enable all these warnings once PoC is finished | ||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
target_compile_options( | ||
honk_test_objects | ||
PRIVATE | ||
-Wno-error=unused-variable | ||
) | ||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU") | ||
target_compile_options( | ||
honk_test_objects | ||
PRIVATE | ||
-Wno-error=maybe-uninitialized | ||
-Wno-error=uninitialized | ||
-Wno-error=unused-variable | ||
) | ||
endif() | ||
endif() |