From a06cb20963de1d282830260e2dc2df0de4aed5a3 Mon Sep 17 00:00:00 2001 From: Luna Nova Date: Thu, 19 Mar 2026 10:06:35 -0700 Subject: [PATCH] triton-llvm: Set LLVM_TOOL_LLVM_DRIVER_BUILD=ON to use a single symlinked binary Save space by using busybox style tool binary It's tempting to set BUILD_SHARED_LIBS, which saves far more space but currently segfaults in keras's test suite. More work needed. See 8106d8a6055c6c00452bf001f27ae376c2dd2503 and subsequent revert --- pkgs/by-name/tr/triton-llvm/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/tr/triton-llvm/package.nix b/pkgs/by-name/tr/triton-llvm/package.nix index a8e8f0d96259..9f75c47099ec 100644 --- a/pkgs/by-name/tr/triton-llvm/package.nix +++ b/pkgs/by-name/tr/triton-llvm/package.nix @@ -128,6 +128,9 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "LLVM_INCLUDE_DOCS" (buildDocs || buildMan)) (lib.cmakeBool "MLIR_INCLUDE_DOCS" (buildDocs || buildMan)) (lib.cmakeBool "LLVM_BUILD_DOCS" (buildDocs || buildMan)) + # It's tempting to set BUILD_SHARED_LIBS, which saves far more space + # but currently segfaults in keras's test suite. More work needed. + (lib.cmakeBool "LLVM_TOOL_LLVM_DRIVER_BUILD" true) # Save space by using busybox style tool binary # Way too slow, only uses one core # (lib.cmakeBool "LLVM_ENABLE_DOXYGEN" (buildDocs || buildMan)) (lib.cmakeBool "LLVM_ENABLE_SPHINX" (buildDocs || buildMan))