diff options
| author | Michael Spencer <bigcheesegs@gmail.com> | 2020-02-28 14:39:49 -0800 |
|---|---|---|
| committer | Hans Wennborg <hans@chromium.org> | 2020-03-02 10:02:39 +0100 |
| commit | 5405c262a4abec1a9cf0b8b89aabbf529209262a (patch) | |
| tree | f83fac42f537faa5e0464b71fa0ba11a1b54f4f5 /llvm/include | |
| parent | dce2ef9e642127d0e4809fb4ecc682b1152bf98b (diff) | |
| download | bcm5719-llvm-5405c262a4abec1a9cf0b8b89aabbf529209262a.tar.gz bcm5719-llvm-5405c262a4abec1a9cf0b8b89aabbf529209262a.zip | |
[llvm][Support][modulemap] Exclude WindowsSupport.h from the LLVM_Util module
rG01f9abbb50b1 moved WindowsSupport.h to include/llvm/Support/Windows/
This is a problem because the modulemap include all of the Support and
ADT directories, thus any use of any header in Support or ADT would
cause the compiler to try to build WindowsSupport.h, which only works
on Windows.
Fix this by explicitly excluding WindowsSupport.h from the LLVM_Util
module.
(cherry picked from commit 0b6abe428164c38c7dec6c539e454cfd671067a4)
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/module.modulemap | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/module.modulemap b/llvm/include/llvm/module.modulemap index 05de40698e3..d281682ae00 100644 --- a/llvm/include/llvm/module.modulemap +++ b/llvm/include/llvm/module.modulemap @@ -380,6 +380,9 @@ module LLVM_Utils { umbrella "Support" module * { export * } + + // Exclude this; it should only be used on Windows. + exclude header "Support/Windows/WindowsSupport.h" // Exclude these; they are fundamentally non-modular. exclude header "Support/PluginLoader.h" |

