Skip to content

Commit e5f3260

Browse files
committed
[gn] Port 860e884
1 parent 058992e commit e5f3260

File tree

1 file changed

+8
-1
lines changed
  • llvm/utils/gn/secondary/libcxx/include

1 file changed

+8
-1
lines changed

llvm/utils/gn/secondary/libcxx/include/BUILD.gn

+8-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ if (current_toolchain == default_toolchain) {
6565
values = []
6666
}
6767

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+
6875
copy("copy_headers") {
6976
sources = [
7077
"__algorithm/adjacent_find.h",
@@ -1677,7 +1684,6 @@ if (current_toolchain == default_toolchain) {
16771684
"mdspan",
16781685
"memory",
16791686
"memory_resource",
1680-
"module.modulemap",
16811687
"mutex",
16821688
"new",
16831689
"numbers",
@@ -1732,6 +1738,7 @@ if (current_toolchain == default_toolchain) {
17321738
deps = [
17331739
":write_assertion_handler",
17341740
":write_config_site",
1741+
":write_modulemap",
17351742
]
17361743
if (target_os != "mac" && target_os != "win") {
17371744
# libcxx/cmake/Modules/HandleLibCXXABI.cmake sets

0 commit comments

Comments
 (0)