Skip to content

Commit

Permalink
Merge branch 'compiler_warns' into 'main'
Browse files Browse the repository at this point in the history
Enable compiler warnings and use -Werror in CI

See merge request repositories/verilator-infrastructure-bugpoint!28
  • Loading branch information
sgizler committed Oct 9, 2024
2 parents 0a58dbf + 8406ab8 commit b98c220
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@ target_precompile_headers(sv-bugpoint PUBLIC
<slang/syntax/SyntaxPrinter.h>
<slang/text/SourceLocation.h>
)

if (NOT MSVC)
target_compile_options(sv-bugpoint PRIVATE -Wall -Wextra -pedantic -Wno-reorder -Wno-unused-parameter)
if(DEFINED ENV{CI})
target_compile_options(sv-bugpoint PRIVATE -Werror)
endif()
endif()

0 comments on commit b98c220

Please sign in to comment.