]> granicus.if.org Git - clang/commit
[Modules] Extend -fmodule-name semantic for frameworks with private modules
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Fri, 16 Feb 2018 00:12:57 +0000 (00:12 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Fri, 16 Feb 2018 00:12:57 +0000 (00:12 +0000)
commitb2feff83250602c95a2547927d84e1b1adeab367
tree6504d57c9a8ff0a3df4dc84dbe83c484c48d47f4
parent940e095f467ef5b9a841de4e6bc8f2ea4557f1fd
[Modules] Extend -fmodule-name semantic for frameworks with private modules

Assume Foo.framework with two module maps and two modules Foo and
Foo_Private.

Framework authors need to skip building both Foo and Foo_Private when
using -fmodule-name=Foo, since both are part of the framework and used
interchangeably during compilation.

rdar://problem/37500098

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325305 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/PPDirectives.cpp
test/Modules/module-name-private.m [new file with mode: 0644]