1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00

aws-c-common: emit unwind information for RISC-V

Pass -fasynchronous-unwind-tables in CFLAGS for RISC-V.

This fixes functionality which depends on backtrace() and enables
running the test suite without error.
This commit is contained in:
Joerie de Gram 2022-01-19 21:35:51 +01:00 committed by Dmitry Kalinkin
parent ebddede8da
commit 8ccbba4f55

View file

@ -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