From 00ca2763dc843d9127376b8e5c5a133659a56a75 Mon Sep 17 00:00:00 2001 From: 0xf00sec <159052166+0xf00sec@users.noreply.github.com> Date: Fri, 8 Aug 2025 15:36:56 +0300 Subject: CPlusPlusCompilerAMD64.cc Signed-off-by: 0xf00sec <159052166+0xf00sec@users.noreply.github.com> --- dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dev/CompilerKit/src') diff --git a/dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc b/dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc index c31a81c..ad2b8e1 100644 --- a/dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc +++ b/dev/CompilerKit/src/Frontend/CPlusPlusCompilerAMD64.cc @@ -817,6 +817,8 @@ NECTI_MODULE(CompilerCPlusPlusAMD64) { kCompilerFrontend = new CompilerFrontendCPlusPlusAMD64(); kFactory.Mount(new AssemblyCPlusPlusInterfaceAMD64()); + + CompilerKit::install_signal(SIGSEGV, Detail::drvi_crash_handler); // Ensure cleanup on exit std::atexit([]() { @@ -825,7 +827,6 @@ NECTI_MODULE(CompilerCPlusPlusAMD64) { }); - for (auto index = 1UL; index < argc; ++index) { if (!argv[index]) break; @@ -834,6 +835,7 @@ NECTI_MODULE(CompilerCPlusPlusAMD64) { skip = false; continue; } + if (strcmp(argv[index], "-cxx-verbose") == 0) { kVerbose = true; -- cgit v1.2.3