Files
dotfiles/overlays/x86-64-v3-workarounds.nix
T
Richie 7c0c962f2e
treefmt / nix fmt (pull_request) Successful in 2s
build_systems / build-portal-1 (pull_request) Successful in 34s
build_systems / build-brain (pull_request) Successful in 46s
build_systems / build-bob (pull_request) Successful in 48s
build_systems / build-jeeves (pull_request) Failing after 16m54s
build_systems / build-rhapsody-in-green (pull_request) Canceled after 30m22s
pytest / pytest (pull_request) Failing after 1h45m29s
test ebook search / test-ebook-search (pull_request) Successful in 4h14m0s
more test issues
2026-09-13 11:16:37 -04:00

21 lines
914 B
Nix

# Compatibility fixes for packages rebuilt with x86-64-v3.
#
# The v3 baseline enables instructions that expose source assumptions hidden
# by the generic x86-64 build. Keep compile fixes here, separate from test
# exclusions, until upstream or nixpkgs incorporates them.
_final: prev:
prev.lib.optionalAttrs ((prev.stdenv.hostPlatform.gcc.arch or null) == "x86-64-v3") {
deno =
let
librusty_v8 = prev.deno.passthru.librusty_v8.overrideAttrs (old: {
# Clang prohibits including its internal BMI2 header directly. The
# public umbrella supplies the same intrinsics with the required setup.
postPatch = (old.postPatch or "") + ''
substituteInPlace third_party/abseil-cpp/absl/container/internal/raw_hash_set.h \
--replace-fail "#include <bmi2intrin.h>" "#include <immintrin.h>"
'';
});
in
prev.deno.override { inherit librusty_v8; };
}