Skip to content

Commit

Permalink
Trying to fix cpp-linux-arm64 job.
Browse files Browse the repository at this point in the history
  • Loading branch information
rturrado committed Dec 13, 2023
1 parent dfc87a5 commit c65344f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ if(CMAKE_COMPILER_IS_GNUCXX)
-Wall -Wextra -Werror -Wfatal-errors
-fPIC
-Wno-error=deprecated-declarations
-Wno-error=maybe-uninitialized
-Wno-error=restrict
-Wno-error=sign-compare
)
Expand All @@ -322,6 +321,11 @@ else()
message(SEND_ERROR "Unknown compiler!")
endif()

# TODO: this flag should go in tree-gen CMakeLists.txt, not here
if(CMAKE_COMPILER_IS_GNUCXX)
add_compile_options(-Werror=maybe-uninitialized)
endif()

# Main cQASM library in shared or static form as managed by cmake's
# internal BUILD_SHARED_LIBS variable.
add_library(cqasm
Expand Down

0 comments on commit c65344f

Please sign in to comment.