[llvm][Support][modulemap] Exclude WindowsSupport.h from the LLVM_Util module
authorMichael Spencer <bigcheesegs@gmail.com>
Fri, 28 Feb 2020 22:39:49 +0000 (14:39 -0800)
committerMichael Spencer <bigcheesegs@gmail.com>
Fri, 28 Feb 2020 22:40:14 +0000 (14:40 -0800)
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.

llvm/include/llvm/module.modulemap

index d220cc0..f3623a6 100644 (file)
@@ -382,6 +382,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"