From 8a64f4105e7eda6da1992726945e8fe18c0d0cc3 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 3 Jun 2025 08:35:47 -0700 Subject: [PATCH 1/2] Merge pull request #81826 from Steelskin/fabrice/update-ucrt-vcruntime-modulemap Platform: Update module maps for the static SDK --- stdlib/public/Platform/ucrt.modulemap | 74 +++++++++++++++------- stdlib/public/Platform/vcruntime.modulemap | 30 +++++++++ 2 files changed, 82 insertions(+), 22 deletions(-) diff --git a/stdlib/public/Platform/ucrt.modulemap b/stdlib/public/Platform/ucrt.modulemap index f57d9e62b3131..b7b8fb02c29e4 100644 --- a/stdlib/public/Platform/ucrt.modulemap +++ b/stdlib/public/Platform/ucrt.modulemap @@ -12,12 +12,6 @@ // The following modules have to be standalone top-level modules to deal with // version 10.0.26100 of the Windows SDK. -module _malloc [system] [no_undeclared_includes] { - use corecrt - header "malloc.h" - export * -} - module _complex [system] [no_undeclared_includes] { use corecrt use std @@ -25,24 +19,10 @@ module _complex [system] [no_undeclared_includes] { export * } -module _stddef [system] [no_undeclared_includes] { - header "stddef.h" - export * -} - -module _stdlib [system] [no_undeclared_includes] { - use corecrt - header "stdlib.h" - export * -} - module ucrt [system] { - export _malloc module C { export _complex - export _stddef - export _stdlib module ctype { header "ctype.h" @@ -50,7 +30,7 @@ module ucrt [system] { } module errno { - header "errno.h" + textual header "errno.h" export * } @@ -74,6 +54,11 @@ module ucrt [system] { export * } + module malloc { + header "malloc.h" + export * + } + module math { header "math.h" export * @@ -84,6 +69,16 @@ module ucrt [system] { export * } + module stdalign { + header "stdalign.h" + export * + } + + module stddef { + textual header "stddef.h" + export * + } + module stdio { header "stdio.h" export * @@ -101,6 +96,11 @@ module ucrt [system] { export * } + module stdnoreturn { + textual header "stdnoreturn.h" + export * + } + module string { header "string.h" export * @@ -187,8 +187,14 @@ module corecrt [system] { export * } + module direct { + header "corecrt_wdirect.h" + export * + } + module io { header "corecrt_io.h" + header "corecrt_wio.h" export * } @@ -202,11 +208,36 @@ module corecrt [system] { export * } + module memory { + header "corecrt_memory.h" + export * + } + + module memcpy { + header "corecrt_memcpy_s.h" + export * + } + + module process { + header "corecrt_wprocess.h" + export * + } + + module search { + header "corecrt_search.h" + export * + } + module share { header "corecrt_share.h" export * } + module ctype { + header "corecrt_wctype.h" + export * + } + module stdio { header "corecrt_wstdio.h" export * @@ -227,4 +258,3 @@ module corecrt [system] { export * } } - diff --git a/stdlib/public/Platform/vcruntime.modulemap b/stdlib/public/Platform/vcruntime.modulemap index 564c832dcc12b..0ee59dfc63e82 100644 --- a/stdlib/public/Platform/vcruntime.modulemap +++ b/stdlib/public/Platform/vcruntime.modulemap @@ -100,15 +100,45 @@ module vcruntime [system] { header "vcruntime.h" + module iso646 { + header "iso646.h" + export * + } + + module limits { + header "limits.h" + export * + } + module setjmp { header "setjmp.h" export * } + module stdarg { + header "stdarg.h" + export * + } + + module stdbool { + header "stdbool.h" + export * + } + module stdint { header "stdint.h" export * } + + module string { + header "vcruntime_string.h" + export * + } + + module vadefs { + header "vadefs.h" + export * + } } module std_config [system] { From 35e9b0bcfdb6772988c399ddc8391239be6089a6 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 5 Jun 2025 10:00:06 -0700 Subject: [PATCH 2/2] Merge pull request #81951 from Steelskin/fabrice/ucrt-modulemap-26100-3916 Platform: Windows SDK 26100.3916 module map update --- stdlib/public/Platform/ucrt.modulemap | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/stdlib/public/Platform/ucrt.modulemap b/stdlib/public/Platform/ucrt.modulemap index b7b8fb02c29e4..796343a1ddc14 100644 --- a/stdlib/public/Platform/ucrt.modulemap +++ b/stdlib/public/Platform/ucrt.modulemap @@ -19,10 +19,39 @@ module _complex [system] [no_undeclared_includes] { export * } +module _fenv [system] [no_undeclared_includes] { + use _float + use corecrt + header "fenv.h" + export * +} + +module _float [system] [no_undeclared_includes] { + use corecrt + header "float.h" + export * +} + +module _malloc [system] [no_undeclared_includes] { + use corecrt + header "malloc.h" + export * +} + +module _stdlib [system] [no_undeclared_includes] { + use corecrt + header "stdlib.h" + export * +} + module ucrt [system] { module C { export _complex + export _fenv + export _float + export _malloc + export _stdlib module ctype { header "ctype.h"