Skip to content

[6.2] Windows module maps update #82025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 70 additions & 11 deletions stdlib/public/Platform/ucrt.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,29 @@

// 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] {
module _complex [system] [no_undeclared_includes] {
use corecrt
header "malloc.h"
use std
header "complex.h"
export *
}

module _complex [system] [no_undeclared_includes] {
module _fenv [system] [no_undeclared_includes] {
use _float
use corecrt
use std
header "complex.h"
header "fenv.h"
export *
}

module _stddef [system] [no_undeclared_includes] {
header "stddef.h"
module _float [system] [no_undeclared_includes] {
use corecrt
header "float.h"
export *
}

module _malloc [system] [no_undeclared_includes] {
use corecrt
header "malloc.h"
export *
}

Expand All @@ -37,11 +45,12 @@ module _stdlib [system] [no_undeclared_includes] {
}

module ucrt [system] {
export _malloc

module C {
export _complex
export _stddef
export _fenv
export _float
export _malloc
export _stdlib

module ctype {
Expand All @@ -50,7 +59,7 @@ module ucrt [system] {
}

module errno {
header "errno.h"
textual header "errno.h"
export *
}

Expand All @@ -74,6 +83,11 @@ module ucrt [system] {
export *
}

module malloc {
header "malloc.h"
export *
}

module math {
header "math.h"
export *
Expand All @@ -84,6 +98,16 @@ module ucrt [system] {
export *
}

module stdalign {
header "stdalign.h"
export *
}

module stddef {
textual header "stddef.h"
export *
}

module stdio {
header "stdio.h"
export *
Expand All @@ -101,6 +125,11 @@ module ucrt [system] {
export *
}

module stdnoreturn {
textual header "stdnoreturn.h"
export *
}

module string {
header "string.h"
export *
Expand Down Expand Up @@ -187,8 +216,14 @@ module corecrt [system] {
export *
}

module direct {
header "corecrt_wdirect.h"
export *
}

module io {
header "corecrt_io.h"
header "corecrt_wio.h"
export *
}

Expand All @@ -202,11 +237,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 *
Expand All @@ -227,4 +287,3 @@ module corecrt [system] {
export *
}
}

30 changes: 30 additions & 0 deletions stdlib/public/Platform/vcruntime.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand Down