Skip to content

Commit

Permalink
explicit mark enable debug to false
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMlashkin committed Sep 4, 2024
1 parent 4f912f4 commit 077d733
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crypto3/crypto3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
gdb,
cmake_modules,
enableDebugging,
enableDebug ? true,
enableDebug ? false,
runTests ? false,
}:
let
Expand Down
11 changes: 9 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
crypto3 = (pkgs.callPackage ./crypto3/crypto3.nix { });
crypto3-tests = (pkgs.callPackage ./crypto3/crypto3.nix {
runTests = true;
enableDebug = false;
});
crypto3-debug-tests = (pkgs.callPackage ./crypto3/crypto3.nix {
enableDebug = true;
Expand All @@ -33,15 +34,17 @@

evm-assigner = (pkgs.callPackage ./evm-assigner/evm-assigner.nix {
crypto3 = crypto3;
enableDebug = false;
});
evm-assigner-tests = (pkgs.callPackage ./evm-assigner/evm-assigner.nix {
runTests = true;
crypto3 = crypto3;
runTests = true;
enableDebug = false;
});
evm-assigner-debug-tests = (pkgs.callPackage ./evm-assigner/evm-assigner.nix {
crypto3 = crypto3;
enableDebug = true;
runTests = true;
crypto3 = crypto3;
});

# The "all" package will build all packages. Convenient for CI,
Expand All @@ -57,20 +60,24 @@

checks = rec {
crypto3-tests-gcc = (pkgs.callPackage ./crypto3/crypto3.nix {
enableDebug = false;
runTests = true;
});
crypto3-tests-clang = (pkgs.callPackage ./crypto3/crypto3.nix {
stdenv = pkgs.llvmPackages_18.stdenv;
enableDebug = false;
runTests = true;
});

evm-assigner-tests-gcc = (pkgs.callPackage ./evm-assigner/evm-assigner.nix {
runTests = true;
enableDebug = false;
crypto3 = crypto3-tests-gcc;
});
evm-assigner-tests-clang = (pkgs.callPackage ./evm-assigner/evm-assigner.nix {
stdenv = pkgs.llvmPackages_18.stdenv;
runTests = true;
enableDebug = false;
crypto3 = crypto3-tests-clang;
});

Expand Down

0 comments on commit 077d733

Please sign in to comment.