File tree 1 file changed +8
-1
lines changed
llvm/utils/gn/secondary/libcxx/include
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,13 @@ if (current_toolchain == default_toolchain) {
65
65
values = []
66
66
}
67
67
68
+ write_cmake_config (" write_modulemap" ) {
69
+ input = " module.modulemap.in"
70
+ output = " $libcxx_generated_include_dir /module.modulemap"
71
+ values =
72
+ [ " LIBCXX_CONFIG_SITE_MODULE_ENTRY=textual header \" __config_site\" " ]
73
+ }
74
+
68
75
copy (" copy_headers" ) {
69
76
sources = [
70
77
" __algorithm/adjacent_find.h" ,
@@ -1677,7 +1684,6 @@ if (current_toolchain == default_toolchain) {
1677
1684
" mdspan" ,
1678
1685
" memory" ,
1679
1686
" memory_resource" ,
1680
- " module.modulemap" ,
1681
1687
" mutex" ,
1682
1688
" new" ,
1683
1689
" numbers" ,
@@ -1732,6 +1738,7 @@ if (current_toolchain == default_toolchain) {
1732
1738
deps = [
1733
1739
" :write_assertion_handler" ,
1734
1740
" :write_config_site" ,
1741
+ " :write_modulemap" ,
1735
1742
]
1736
1743
if (target_os != " mac" && target_os != " win" ) {
1737
1744
# libcxx/cmake/Modules/HandleLibCXXABI.cmake sets
You can’t perform that action at this time.
0 commit comments