Skip to content

Commit 409d7cd

Browse files
committed
zluda: provide fallback CMAKE_BUILD_TYPE
Signed-off-by: Gavin Zhao <[email protected]>
1 parent 5cbf490 commit 409d7cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkgs/by-name/zl/zluda/package.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ rustPlatform.buildRustPackage rec {
5555

5656
# xtask doesn't support passing --target, but nix hooks expect the folder structure from when it's set
5757
env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.cargoShortTarget;
58+
# Future packagers:
59+
# This is a fix for https://github.com/NixOS/nixpkgs/issues/390469. Ideally
60+
# ZLUDA should configure this automatically. Therefore, on every new update,
61+
# please try removing this line and see if ZLUDA builds.
62+
env.CMAKE_BUILD_TYPE = "Release";
5863

5964
preConfigure = ''
6065
# disable test written for windows only: https://github.com/vosen/ZLUDA/blob/774f4bcb37c39f876caf80ae0d39420fa4bc1c8b/zluda_inject/tests/inject.rs#L55

0 commit comments

Comments
 (0)