Merge pull request #275084 from patryk4815/fix-riscv64-unicorn

unicorn: fix build on riscv
This commit is contained in:
Nick Cao 2023-12-18 12:30:05 -05:00 committed by GitHub
commit b3ecefc2ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,9 @@ stdenv.mkDerivation rec {
IOKit
];
# Ensure the linker is using atomic when compiling for RISC-V, otherwise fails
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isRiscV "-latomic";
cmakeFlags = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
# Some x86 tests are interrupted by signal 10
"-DCMAKE_CTEST_ARGUMENTS=--exclude-regex;test_x86"