Skip to content

Commit

Permalink
move flags from flake to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMlashkin committed Sep 7, 2024
1 parent 2a353cc commit 75e0b99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions parallel-crypto3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ project(parallel-crypto3)

find_package(CM)

if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
set(CMAKE_CXX_FLAGS "-ggdb -O0")
endif()

# This is useful due to some build systems (Ninja in particular) are piping
# compiler output and compiler switches it's output to plain text
option (FORCE_COLORED_OUTPUT "Always produce ANSI-colored output (GNU/Clang only)." FALSE)
Expand Down
3 changes: 0 additions & 3 deletions parallel-crypto3/parallel-crypto3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ in stdenv.mkDerivation {
cmakeFlags =
[
(if runTests then "-DBUILD_TESTS=TRUE" else "")
(if runTests then "-DCMAKE_ENABLE_TESTS=TRUE" else "")
(if enableDebug then "-DCMAKE_BUILD_TYPE=Debug" else "-DCMAKE_BUILD_TYPE=Release")
(if enableDebug then "-DCMAKE_CXX_FLAGS=-ggdb" else "")
(if enableDebug then "-DCMAKE_CXX_FLAGS=-O0" else "")
];

doCheck = runTests; # tests are inside crypto3-tests derivation
Expand Down

0 comments on commit 75e0b99

Please sign in to comment.