Allow for changing the modulemap name to match the overlay.

Fixes #14964
This commit is contained in:
Vassil Vassilev 2024-03-25 08:06:36 +00:00 committed by jenkins
parent abeda742aa
commit 3750135c31

View File

@ -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);