From 2264e8c66f9bb02407824f3cdf660efee13fdafb Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Wed, 6 Dec 2017 04:11:26 +0100 Subject: [PATCH] Mark compiler include paths as -cxx-isystem (ROOT-8991). --- lib/Interpreter/CIFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Interpreter/CIFactory.cpp b/lib/Interpreter/CIFactory.cpp index b8a351f7..54ae72ef 100644 --- a/lib/Interpreter/CIFactory.cpp +++ b/lib/Interpreter/CIFactory.cpp @@ -125,7 +125,7 @@ namespace { cling::utils::LogNonExistantDirectory(Path); } else - Args.addArgument("-I", Path.str()); + Args.addArgument("-cxx-isystem", Path.str()); } } ::pclose(PF); @@ -164,7 +164,7 @@ namespace { } for (llvm::StringRef Path : Paths) - Args.addArgument("-I", Path.str()); + Args.addArgument("-cxx-isystem", Path.str()); return true; }