Skip to content

Commit 101dbfd

Browse files
ferdymercuryguitargeek
authored andcommitted
[core] also print cxx standard into start message
This is useful, since some bug reports could be traced back to a specific cxx standard that can not be reproduced with others
1 parent 918ef6f commit 101dbfd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/base/src/TApplication.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,8 +988,8 @@ TString TApplication::GetSetup()
988988
gROOT->GetGitBranch(),
989989
gROOT->GetGitCommit()));
990990
}
991-
lines.emplace_back(TString::Format("With %s",
992-
gSystem->GetBuildCompilerVersionStr()));
991+
lines.emplace_back(TString::Format("With %s std%ld",
992+
gSystem->GetBuildCompilerVersionStr(), __cplusplus));
993993
lines.emplace_back("Binary directory: "+ gROOT->GetBinDir());
994994
lines.emplace_back("```");
995995
TString setup = "";

core/rint/src/TRint.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ void TRint::PrintLogo(Bool_t lite)
542542
gROOT->GetGitBranch(),
543543
gROOT->GetGitCommit()));
544544
}
545-
lines.emplace_back(TString::Format("With %s %%s",
546-
gSystem->GetBuildCompilerVersionStr()));
545+
lines.emplace_back(TString::Format("With %s std%ld %%s",
546+
gSystem->GetBuildCompilerVersionStr(), __cplusplus));
547547
lines.emplace_back(TString("Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'%s"));
548548

549549
// Find the longest line and its length:

0 commit comments

Comments
 (0)