Commit 0002d7ef authored by XYenon's avatar XYenon
Browse files

cpptrace: fix Darwin tests

Run dsymutil on unittest in preCheck on Darwin so libdwarf can resolve line info during ctest.
Without the generated dSYM, the unittest run fails with DW_DLE_MACHO_CORRUPT_COMMAND(487) in checkPhase.
parent 337e3533
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -46,6 +46,10 @@ stdenv.mkDerivation (finalAttrs: {

  checkInputs = [ gtest ];

  preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
    dsymutil unittest
  '';

  doCheck = true;

  passthru = {