unicorn: fix build on riscv

This commit is contained in:
psondej 2023-12-17 22:28:17 +01:00
parent 271235e389
commit 50bf72a249

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"