unicorn: fix build on riscv
This commit is contained in:
parent
271235e389
commit
50bf72a249
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ stdenv.mkDerivation rec {
|
||||||
IOKit
|
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) [
|
cmakeFlags = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
|
||||||
# Some x86 tests are interrupted by signal 10
|
# Some x86 tests are interrupted by signal 10
|
||||||
"-DCMAKE_CTEST_ARGUMENTS=--exclude-regex;test_x86"
|
"-DCMAKE_CTEST_ARGUMENTS=--exclude-regex;test_x86"
|
||||||
|
|
Loading…
Reference in a new issue