This is an archive of the discontinued LLVM Phabricator instance.

[cmake][wip] Add support for setting crash report directory
AbandonedPublic

Authored by paulkirth on Aug 31 2022, 5:14 PM.

Details

Reviewers
phosek
Group Reviewers
Restricted Project
Restricted Project
Summary

Crash reports and reproducers can be saved to a directory through
-fcrash-diagnostics-dir. This patch adds a CMAKE variable and plumbs
it through to the runtimes build targets in addition to Clang/LLVM

Diff Detail

Event Timeline

paulkirth created this revision.Aug 31 2022, 5:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 31 2022, 5:14 PM
Herald added subscribers: Enna1, mgorny. · View Herald Transcript
paulkirth requested review of this revision.Aug 31 2022, 5:14 PM
Herald added projects: Restricted Project, Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptAug 31 2022, 5:14 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
Herald added subscribers: llvm-commits, libcxx-commits, Restricted Project. · View Herald Transcript
paulkirth updated this revision to Diff 457286.Sep 1 2022, 8:35 AM

Actually passthrough/update the variable in the runtimes build.
Remove debugging code.

Is there a way to write a test for CMAKE?

This seems to solve the same issue as D133082, have you seen that patch?

@Mordante I had not seen that, so thanks for pointing this out.

paulkirth abandoned this revision.Sep 8 2022, 1:36 PM

D133082 has landed, making this change redundant