From 577264928c403635465468e412882748a1f46da1 Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Fri, 15 Nov 2024 17:49:05 +0100 Subject: [PATCH] [metacling] print to stderr before exiting --- core/metacling/src/TCling.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/metacling/src/TCling.cxx b/core/metacling/src/TCling.cxx index 543109cf17d95..f3ac7fcd6a869 100644 --- a/core/metacling/src/TCling.cxx +++ b/core/metacling/src/TCling.cxx @@ -1536,8 +1536,10 @@ TCling::TCling(const char *name, const char *title, const char* const argv[], vo llvmResourceDir, extensions, interpLibHandle); - if (!fInterpreter->getCI()) // Compiler instance could not be created. See https://its.cern.ch/jira/browse/ROOT-10239 - exit(1); + if (!fInterpreter->getCI()) { // Compiler instance could not be created. See https://its.cern.ch/jira/browse/ROOT-10239 + std::cerr << "Exiting now since compiler instance is not available." << std::endl; + exit(EXIT_FAILURE); + } // Don't check whether modules' files exist. fInterpreter->getCI()->getPreprocessorOpts().DisablePCHOrModuleValidation = DisableValidationForModuleKind::All;