From 47b204ece06dc0a61e582cb5fd7d74c03988a7f2 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Mon, 25 Mar 2024 08:06:36 +0000 Subject: [PATCH] [runtime_cxxmodules] Allow for changing the modulemap name to match the overlay. Fixes #14964 --- interpreter/cling/lib/Interpreter/CIFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter/cling/lib/Interpreter/CIFactory.cpp b/interpreter/cling/lib/Interpreter/CIFactory.cpp index 545ccd37ab6f0..1c099ad3f52ab 100644 --- a/interpreter/cling/lib/Interpreter/CIFactory.cpp +++ b/interpreter/cling/lib/Interpreter/CIFactory.cpp @@ -631,7 +631,7 @@ namespace { cling::log() << "'" << systemLoc << "' does not exist. Mounting '" << originalLoc.str() << "' as '" << systemLoc << "'\n"; - if (!HSOpts.ImplicitModuleMaps && !llvm::sys::fs::exists(systemLoc.str())) { + if (!HSOpts.ImplicitModuleMaps) { modulemapFilename = Filename; llvm::sys::path::remove_filename(systemLoc); llvm::sys::path::append(systemLoc, modulemapFilename);