Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set __CLING__CXX14 for consitancy.
  • Loading branch information
marsupial authored and Axel-Naumann committed Jun 28, 2017
commit e930f551780d0c0f82f3d7d23750f98aec9fbb93
5 changes: 3 additions & 2 deletions interpreter/cling/lib/Interpreter/CIFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,9 +643,10 @@ static void stringifyPreprocSetting(PreprocessorOptions& PPOpts,
SetPreprocessorFromBinary(PPOpts);

PPOpts.addMacroDef("__CLING__");
if (CI->getLangOpts().CPlusPlus11 == 1) {
if (CI->getLangOpts().CPlusPlus11 == 1)
PPOpts.addMacroDef("__CLING__CXX11");
}
if (CI->getLangOpts().CPlusPlus14 == 1)
PPOpts.addMacroDef("__CLING__CXX14");

if (CI->getDiagnostics().hasErrorOccurred()) {
cling::errs() << "Compiler error to early in initialization.\n";
Expand Down