llvmPackages.libllvm: clean up rebuild avoidance

This commit is contained in:
Emily
2026-01-10 18:55:55 +00:00
parent e44c4915d8
commit 0ecdff6a06
@@ -303,17 +303,10 @@ stdenv.mkDerivation (
# This was fixed upstream in LLVM 21 with
# 88f041f3e05e26617856cc096d2e2864dfaa1c7b, but its too
# painful to backport all the way.
lib.optionalString
(
lib.versionOlder release_version "21"
||
# Rebuild avoidance; TODO: clean up on `staging`.
stdenv.hostPlatform.isx86
)
''
substituteInPlace unittests/TargetParser/Host.cpp \
--replace-fail "getMacOSHostVersion" "DISABLED_getMacOSHostVersion"
''
lib.optionalString (lib.versionOlder release_version "21") ''
substituteInPlace unittests/TargetParser/Host.cpp \
--replace-fail "getMacOSHostVersion" "DISABLED_getMacOSHostVersion"
''
+
# This test fails with a `dysmutil` crash; have not yet dug into what's
# going on here (TODO(@rrbutani)).