[llvm-bugs] [Bug 30508] New: modulemap umbrellas check for folder existence
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Sep 23 14:26:24 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30508
Bug ID: 30508
Summary: modulemap umbrellas check for folder existence
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Modules
Assignee: unassignedclangbugs at nondot.org
Reporter: vvasilev at cern.ch
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
cat T.cxx
#include "A.h"
int i;
cat includes/A.h
cat includes/module.modulemap
module NonExistent1 {
umbrella "NonExistent"
module * { export * }
}
module NonExistent2 {
module H1 { header "NonExistent/H1" export * }
module H2 { header "NonExistent/H2" export * }
}
clang++ -I includes -fmodules -fsyntax-only T.cxx
includes/module.modulemap:2:12: error: umbrella directory 'NonExistent' not
found umbrella "NonExistent"
If I comment out module NonExistent1 but leave NonExistent2 it compiles just
fine, even if the folder NonExistent does not exist.
IMO, the umbrella module NonExistent1 should behave as NonExistent2, i.e. not
complain if the folder doesn't exist.
This would help users (including our frameworks) shorten the modulemaps, adding
umbrella modules for optional components.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160923/b6c20396/attachment.html>
More information about the llvm-bugs
mailing list