enable segfault stack traces in stage1 compiler

This commit is contained in:
Andrew Kelley
2019-07-02 13:38:33 -04:00
parent 1a1598c58c
commit 7d4a0cfed0
4 changed files with 14 additions and 0 deletions

View File

@@ -262,6 +262,8 @@ static bool get_cache_opt(CacheOpt opt, bool default_value) {
extern "C" int ZigClang_main(int argc, char **argv);
int main(int argc, char **argv) {
stage2_attach_segfault_handler();
char *arg0 = argv[0];
Error err;