triton-llvm: Set LLVM_TOOL_LLVM_DRIVER_BUILD=ON to use a single symlinked binary (#501365)

This commit is contained in:
Gaétan Lepage
2026-03-20 12:36:36 +00:00
committed by GitHub
+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))