Skip to content

Commit 9908ed8

Browse files
committed
fix build
1 parent b2fdbbd commit 9908ed8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

flake.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@
5252

5353
cli = operon.overrideAttrs (old: {
5454
cmakeFlags = old.cmakeFlags ++ [ "-DBUILD_CLI_PROGRAMS=ON" "-DCPM_USE_LOCAL_PACKAGES=ON" ];
55-
enableShared = "true";
55+
enableShared = true;
5656
});
5757

5858
cli-static = operon.overrideAttrs (old: {
5959
cmakeFlags = old.cmakeFlags ++ [ "-DBUILD_CLI_PROGRAMS=ON" "-DCPM_USE_LOCAL_PACKAGES=ON" ];
60-
enableShared = "false";
60+
enableShared = false;
6161
});
6262

6363
library = operon.overrideAttrs (old: {
64-
enableShared = "true";
64+
enableShared = true;
6565
});
6666

6767
library-static = operon.overrideAttrs (old: {
68-
enableShared = "false";
68+
enableShared = false;
6969
});
7070
};
7171

include/operon/interpreter/backend/eigen/functions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Operon::Backend {
2424

2525
// utility
2626
template<typename T, std::size_t S>
27-
auto Fill(T* res, T weight, T value) {
27+
auto Fill(T* res, T value) {
2828
Map<T, S>(res, S, 1).setConstant(value);
2929
}
3030

operon.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212
cmakeFlags = [
1313
"--preset ${cmakePreset}"
1414
"-DUSE_SINGLE_PRECISION=ON"
15-
"-DBUILD_SHARED_LIBS=${enableShared}"
15+
"-DBUILD_SHARED_LIBS=${if enableShared then "YES" else "NO"}"
1616
];
1717
cmakeBuildType = "Release";
1818

0 commit comments

Comments
 (0)