Revert "[cxxmodules] Enable a module if json is present."
This reverts commit 0cdfa69f216854d7319a6a31a61021a1e5ac45de. We need to hide json includes: modules cannot cope with them, and it introduces a runtime requirement to find json.
This commit is contained in:
parent
a860c891d4
commit
517d7e4bca
@ -1,4 +0,0 @@
|
||||
module Json {
|
||||
header "nlohmann/json.hpp"
|
||||
export *
|
||||
}
|
@ -580,7 +580,6 @@ namespace {
|
||||
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> jsonIncLoc(getIncludePathForHeader(HS, "nlohmann/json.hpp"));
|
||||
llvm::SmallString<256> clingIncLoc(getIncludePathForHeader(HS,
|
||||
"cling/Interpreter/RuntimeUniverse.h"));
|
||||
|
||||
@ -706,11 +705,6 @@ namespace {
|
||||
clingIncLoc.str(), MOverlay,
|
||||
/*RegisterModuleMap=*/ true,
|
||||
/*AllowModulemapOverride=*/ false);
|
||||
if (!jsonIncLoc.empty())
|
||||
maybeAppendOverlayEntry(jsonIncLoc.str(), "json.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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user