Skip to content

Commit

Permalink
review notes
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMlashkin committed Nov 27, 2024
1 parent b89179a commit 62552c7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
26 changes: 17 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@
enableDebug = false;
sanitize = true;
});
crypto3-clang-sanitize-bench = (pkgs.callPackage ./crypto3.nix {
stdenv = pkgs.llvmPackages_19.stdenv;
runTests = true;
enableDebug = false;
sanitize = true;
benchmarkTests = true;
});
crypto3-clang-bench = (pkgs.callPackage ./crypto3.nix {
runTests = true;
enableDebug = false;
Expand All @@ -66,6 +59,11 @@
runTests = true;
enableDebug = false;
});
parallel-crypto3-clang-bench = (pkgs.callPackage ./parallel-crypto3.nix {
runTests = true;
enableDebug = false;
benchmarkTests = true;
});
parallel-crypto3-debug-tests = (pkgs.callPackage ./parallel-crypto3.nix {
enableDebug = true;
runTests = true;
Expand Down Expand Up @@ -129,17 +127,21 @@
enableDebug = false;
sanitize = true;
});
crypto3-clang-sanitize-bench = (pkgs.callPackage ./crypto3.nix {
crypto3-clang-bench = (pkgs.callPackage ./crypto3.nix {
stdenv = pkgs.llvmPackages_19.stdenv;
runTests = true;
enableDebug = false;
sanitize = true;
benchmarkTests = true;
});

parallel-crypto3-gcc = (pkgs.callPackage ./parallel-crypto3.nix {
runTests = true;
enableDebug = false;
benchmarkTests = true;
});
parallel-crypto3-gcc-bench = (pkgs.callPackage ./parallel-crypto3.nix {
runTests = true;
enableDebug = false;
});
parallel-crypto3-clang = (pkgs.callPackage ./parallel-crypto3.nix {
stdenv = pkgs.llvmPackages_19.stdenv;
Expand All @@ -151,6 +153,12 @@
runTests = true;
enableDebug = false;
});
parallel-crypto3-clang-bench = (pkgs.callPackage ./parallel-crypto3.nix {
stdenv = pkgs.llvmPackages_19.stdenv;
runTests = true;
enableDebug = false;
benchmarkTests = true;
});

proof-producer-gcc = (pkgs.callPackage ./proof-producer.nix {
runTests = true;
Expand Down
2 changes: 2 additions & 0 deletions parallel-crypto3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
enableDebug ? false,
runTests ? false,
sanitize? false,
benchmarkTests ? false,
}:
let
inherit (lib) optional;
Expand All @@ -34,6 +35,7 @@ in stdenv.mkDerivation {
(if runTests then "-DBUILD_PARALLEL_CRYPTO3_TESTS=TRUE" else "")
(if enableDebug then "-DCMAKE_BUILD_TYPE=Debug" else "-DCMAKE_BUILD_TYPE=Release")
(if sanitize then "-DSANITIZE=ON" else "-DSANITIZE=OFF")
(if benchmarkTests then "-DENABLE_BENCHMARKS=ON" else "-DENABLE_BENCHMARKS=OFF")
"-DPARALLEL_CRYPTO3_ENABLE=TRUE"
];

Expand Down

0 comments on commit 62552c7

Please sign in to comment.