diff options
author | psondej <patryk.sondej@grupawp.pl> | 2023-12-17 22:28:17 +0100 |
---|---|---|
committer | psondej <patryk.sondej@grupawp.pl> | 2023-12-17 22:28:17 +0100 |
commit | 50bf72a24901303d6f1f31b15e4509af3ee4adda (patch) | |
tree | d24958fc3822df8f127cd6f140bd0cc2a02a04e5 /pkgs/development/libraries | |
parent | 271235e3891e6825fd7dbe94d45e229e41283b3a (diff) |
unicorn: fix build on riscv
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/unicorn/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/libraries/unicorn/default.nix b/pkgs/development/libraries/unicorn/default.nix index 89adbc102578f..b6a91a7367a47 100644 --- a/pkgs/development/libraries/unicorn/default.nix +++ b/pkgs/development/libraries/unicorn/default.nix @@ -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" |