Skip to content

Commit

Permalink
aws-c-common: emit unwind information for RISC-V
Browse files Browse the repository at this point in the history
Pass -fasynchronous-unwind-tables in CFLAGS for RISC-V.

This fixes functionality which depends on backtrace() and enables
running the test suite without error.
  • Loading branch information
ius authored and veprbl committed Jan 26, 2022
1 parent ebddede commit 8ccbba4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/libraries/aws-c-common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
] ++ lib.optionals stdenv.hostPlatform.isRiscV [
"-DCMAKE_C_FLAGS=-fasynchronous-unwind-tables"
];

# aws-c-common misuses cmake modules, so we need
Expand Down

0 comments on commit 8ccbba4

Please sign in to comment.