diff --git a/include/cling/vc.modulemap b/include/cling/vc.modulemap new file mode 100644 index 00000000..20ee6cb2 --- /dev/null +++ b/include/cling/vc.modulemap @@ -0,0 +1,4 @@ +module Vc { + header "Vc/Vc" + export * +} diff --git a/lib/Interpreter/CIFactory.cpp b/lib/Interpreter/CIFactory.cpp index 7dbac9e0..3a1bc56d 100644 --- a/lib/Interpreter/CIFactory.cpp +++ b/lib/Interpreter/CIFactory.cpp @@ -575,6 +575,7 @@ namespace { llvm::SmallString<256> boostIncLoc(getIncludePathForHeader(HS, "boost/version.hpp")); llvm::SmallString<256> tinyxml2IncLoc(getIncludePathForHeader(HS, "tinyxml2.h")); llvm::SmallString<256> cudaIncLoc(getIncludePathForHeader(HS, "cuda.h")); + llvm::SmallString<256> vcVcIncLoc(getIncludePathForHeader(HS, "Vc/Vc")); llvm::SmallString<256> clingIncLoc(getIncludePathForHeader(HS, "cling/Interpreter/RuntimeUniverse.h")); @@ -695,6 +696,11 @@ namespace { clingIncLoc.str(), MOverlay, /*RegisterModuleMap=*/ true, /*AllowModulemapOverride=*/ false); + if (!vcVcIncLoc.empty()) + maybeAppendOverlayEntry(vcVcIncLoc.str(), "vc.modulemap", + clingIncLoc.str(), MOverlay, + /*RegisterModuleMap=*/ true, + /*AllowModulemapOverride=*/ false); if (!boostIncLoc.empty()) { // Add the modulemap in the include/boost folder not in include. llvm::sys::path::append(boostIncLoc, "boost");