Skip to content

Commit 5405c26

Browse files
Bigcheesezmodem
authored andcommitted
[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 0b6abe4)
1 parent dce2ef9 commit 5405c26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/include/llvm/module.modulemap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ module LLVM_Utils {
380380

381381
umbrella "Support"
382382
module * { export * }
383+
384+
// Exclude this; it should only be used on Windows.
385+
exclude header "Support/Windows/WindowsSupport.h"
383386

384387
// Exclude these; they are fundamentally non-modular.
385388
exclude header "Support/PluginLoader.h"

0 commit comments

Comments
 (0)