nix: unicorn, Force sprr register check to avoid Nix caching broken builds (#2867)

pull/2868/head
patryk4815 8 months ago committed by GitHub
parent c5d0edefe5
commit 5f78ac9bd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -220,6 +220,15 @@ let
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace ./src/CMakeLists.txt \
--replace-fail 'set(CMAKE_C_COMPILER "/usr/bin/cc")' 'set(CMAKE_C_COMPILER "${stdenv.cc}/bin/cc")' || true
# Due to an issue with the Apple ARM64 Hypervisor on GitHub Actions,
# we need to force the `sprr` register check.
# Otherwise, Nix may cache broken builds.
# See:
# - https://github.com/actions/runner-images/issues/11127
# - https://github.com/unicorn-engine/unicorn/issues/2033
substituteInPlace ./src/qemu/configure \
--replace-fail "have_sprr_mrs='no'" "have_sprr_mrs='yes'"
'';
}
)

Loading…
Cancel
Save