Skip to content

Commit 478823c

Browse files
authored
Merge pull request #81826 from Steelskin/fabrice/update-ucrt-vcruntime-modulemap
Platform: Update module maps for the static SDK
2 parents 51645d0 + 72dad03 commit 478823c

File tree

2 files changed

+82
-22
lines changed

2 files changed

+82
-22
lines changed

stdlib/public/Platform/ucrt.modulemap

Lines changed: 52 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,45 +12,25 @@
1212

1313
// The following modules have to be standalone top-level modules to deal with
1414
// version 10.0.26100 of the Windows SDK.
15-
module _malloc [system] [no_undeclared_includes] {
16-
use corecrt
17-
header "malloc.h"
18-
export *
19-
}
20-
2115
module _complex [system] [no_undeclared_includes] {
2216
use corecrt
2317
use std
2418
header "complex.h"
2519
export *
2620
}
2721

28-
module _stddef [system] [no_undeclared_includes] {
29-
header "stddef.h"
30-
export *
31-
}
32-
33-
module _stdlib [system] [no_undeclared_includes] {
34-
use corecrt
35-
header "stdlib.h"
36-
export *
37-
}
38-
3922
module ucrt [system] {
40-
export _malloc
4123

4224
module C {
4325
export _complex
44-
export _stddef
45-
export _stdlib
4626

4727
module ctype {
4828
header "ctype.h"
4929
export *
5030
}
5131

5232
module errno {
53-
header "errno.h"
33+
textual header "errno.h"
5434
export *
5535
}
5636

@@ -74,6 +54,11 @@ module ucrt [system] {
7454
export *
7555
}
7656

57+
module malloc {
58+
header "malloc.h"
59+
export *
60+
}
61+
7762
module math {
7863
header "math.h"
7964
export *
@@ -84,6 +69,16 @@ module ucrt [system] {
8469
export *
8570
}
8671

72+
module stdalign {
73+
header "stdalign.h"
74+
export *
75+
}
76+
77+
module stddef {
78+
textual header "stddef.h"
79+
export *
80+
}
81+
8782
module stdio {
8883
header "stdio.h"
8984
export *
@@ -101,6 +96,11 @@ module ucrt [system] {
10196
export *
10297
}
10398

99+
module stdnoreturn {
100+
textual header "stdnoreturn.h"
101+
export *
102+
}
103+
104104
module string {
105105
header "string.h"
106106
export *
@@ -187,8 +187,14 @@ module corecrt [system] {
187187
export *
188188
}
189189

190+
module direct {
191+
header "corecrt_wdirect.h"
192+
export *
193+
}
194+
190195
module io {
191196
header "corecrt_io.h"
197+
header "corecrt_wio.h"
192198
export *
193199
}
194200

@@ -202,11 +208,36 @@ module corecrt [system] {
202208
export *
203209
}
204210

211+
module memory {
212+
header "corecrt_memory.h"
213+
export *
214+
}
215+
216+
module memcpy {
217+
header "corecrt_memcpy_s.h"
218+
export *
219+
}
220+
221+
module process {
222+
header "corecrt_wprocess.h"
223+
export *
224+
}
225+
226+
module search {
227+
header "corecrt_search.h"
228+
export *
229+
}
230+
205231
module share {
206232
header "corecrt_share.h"
207233
export *
208234
}
209235

236+
module ctype {
237+
header "corecrt_wctype.h"
238+
export *
239+
}
240+
210241
module stdio {
211242
header "corecrt_wstdio.h"
212243
export *
@@ -227,4 +258,3 @@ module corecrt [system] {
227258
export *
228259
}
229260
}
230-

stdlib/public/Platform/vcruntime.modulemap

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,45 @@ module vcruntime [system] {
100100

101101
header "vcruntime.h"
102102

103+
module iso646 {
104+
header "iso646.h"
105+
export *
106+
}
107+
108+
module limits {
109+
header "limits.h"
110+
export *
111+
}
112+
103113
module setjmp {
104114
header "setjmp.h"
105115
export *
106116
}
107117

118+
module stdarg {
119+
header "stdarg.h"
120+
export *
121+
}
122+
123+
module stdbool {
124+
header "stdbool.h"
125+
export *
126+
}
127+
108128
module stdint {
109129
header "stdint.h"
110130
export *
111131
}
132+
133+
module string {
134+
header "vcruntime_string.h"
135+
export *
136+
}
137+
138+
module vadefs {
139+
header "vadefs.h"
140+
export *
141+
}
112142
}
113143

114144
module std_config [system] {

0 commit comments

Comments
 (0)