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 8106d8a605 and subsequent revert
This commit is contained in:
Luna Nova
2026-03-19 10:06:35 -07:00
parent 23ccdf26d1
commit a06cb20963
+3
View File
@@ -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))