summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers/module.modulemap
diff options
context:
space:
mode:
authorElad Cohen <elad2.cohen@intel.com>2016-09-04 06:00:42 +0000
committerElad Cohen <elad2.cohen@intel.com>2016-09-04 06:00:42 +0000
commitfb6358d2b5b25601a3172011238e229995f1b1a4 (patch)
tree90a22a43af6bffc06948028c1268069bcf85bf05 /clang/lib/Headers/module.modulemap
parent8e571b551ef58e58b4229de5ce18a65406e70082 (diff)
downloadbcm5719-llvm-fb6358d2b5b25601a3172011238e229995f1b1a4.tar.gz
bcm5719-llvm-fb6358d2b5b25601a3172011238e229995f1b1a4.zip
[Modules] Add 'freestanding' to the 'requires-declaration' feature-list.
This adds support for modules that require (non-)freestanding environment, such as the compiler builtin mm_malloc submodule. Differential Revision: https://reviews.llvm.org/D23871 llvm-svn: 280613
Diffstat (limited to 'clang/lib/Headers/module.modulemap')
-rw-r--r--clang/lib/Headers/module.modulemap1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Headers/module.modulemap b/clang/lib/Headers/module.modulemap
index 4654b3de298..11ef2f90294 100644
--- a/clang/lib/Headers/module.modulemap
+++ b/clang/lib/Headers/module.modulemap
@@ -63,6 +63,7 @@ module _Builtin_intrinsics [system] [extern_c] {
textual header "mwaitxintrin.h"
explicit module mm_malloc {
+ requires !freestanding
header "mm_malloc.h"
export * // note: for <stdlib.h> dependency
}
OpenPOWER on IntegriCloud