llvmPackages: Make targetLlvmLibraries overridable (#355001)

This commit is contained in:
Tristan Ross 2024-11-25 07:25:49 -08:00 committed by GitHub
commit 7c18ea34a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,7 +63,9 @@ let
inherit (stdenvAdapters) overrideCC;
buildLlvmTools = buildPackages."llvmPackages_${attrName}".tools;
targetLlvmLibraries =
targetPackages."llvmPackages_${attrName}".libraries or llvmPackages."${attrName}".libraries;
# Allow overriding targetLlvmLibraries; this enables custom runtime builds.
packageSetArgs.targetLlvmLibraries or targetPackages."llvmPackages_${attrName}".libraries
or llvmPackages."${attrName}".libraries;
targetLlvm = targetPackages."llvmPackages_${attrName}".llvm or llvmPackages."${attrName}".llvm;
inherit
officialRelease