Skip to content

Commit dbd4325

Browse files
authored
Merge pull request #82025 from Steelskin/fabrice/6.2-update-modulemaps-26100-static-sdk
[6.2] Windows module maps update
2 parents f774d4a + 35e9b0b commit dbd4325

File tree

2 files changed

+100
-11
lines changed

2 files changed

+100
-11
lines changed

stdlib/public/Platform/ucrt.modulemap

Lines changed: 70 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,29 @@
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] {
15+
module _complex [system] [no_undeclared_includes] {
1616
use corecrt
17-
header "malloc.h"
17+
use std
18+
header "complex.h"
1819
export *
1920
}
2021

21-
module _complex [system] [no_undeclared_includes] {
22+
module _fenv [system] [no_undeclared_includes] {
23+
use _float
2224
use corecrt
23-
use std
24-
header "complex.h"
25+
header "fenv.h"
2526
export *
2627
}
2728

28-
module _stddef [system] [no_undeclared_includes] {
29-
header "stddef.h"
29+
module _float [system] [no_undeclared_includes] {
30+
use corecrt
31+
header "float.h"
32+
export *
33+
}
34+
35+
module _malloc [system] [no_undeclared_includes] {
36+
use corecrt
37+
header "malloc.h"
3038
export *
3139
}
3240

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

3947
module ucrt [system] {
40-
export _malloc
4148

4249
module C {
4350
export _complex
44-
export _stddef
51+
export _fenv
52+
export _float
53+
export _malloc
4554
export _stdlib
4655

4756
module ctype {
@@ -50,7 +59,7 @@ module ucrt [system] {
5059
}
5160

5261
module errno {
53-
header "errno.h"
62+
textual header "errno.h"
5463
export *
5564
}
5665

@@ -74,6 +83,11 @@ module ucrt [system] {
7483
export *
7584
}
7685

86+
module malloc {
87+
header "malloc.h"
88+
export *
89+
}
90+
7791
module math {
7892
header "math.h"
7993
export *
@@ -84,6 +98,16 @@ module ucrt [system] {
8498
export *
8599
}
86100

101+
module stdalign {
102+
header "stdalign.h"
103+
export *
104+
}
105+
106+
module stddef {
107+
textual header "stddef.h"
108+
export *
109+
}
110+
87111
module stdio {
88112
header "stdio.h"
89113
export *
@@ -101,6 +125,11 @@ module ucrt [system] {
101125
export *
102126
}
103127

128+
module stdnoreturn {
129+
textual header "stdnoreturn.h"
130+
export *
131+
}
132+
104133
module string {
105134
header "string.h"
106135
export *
@@ -187,8 +216,14 @@ module corecrt [system] {
187216
export *
188217
}
189218

219+
module direct {
220+
header "corecrt_wdirect.h"
221+
export *
222+
}
223+
190224
module io {
191225
header "corecrt_io.h"
226+
header "corecrt_wio.h"
192227
export *
193228
}
194229

@@ -202,11 +237,36 @@ module corecrt [system] {
202237
export *
203238
}
204239

240+
module memory {
241+
header "corecrt_memory.h"
242+
export *
243+
}
244+
245+
module memcpy {
246+
header "corecrt_memcpy_s.h"
247+
export *
248+
}
249+
250+
module process {
251+
header "corecrt_wprocess.h"
252+
export *
253+
}
254+
255+
module search {
256+
header "corecrt_search.h"
257+
export *
258+
}
259+
205260
module share {
206261
header "corecrt_share.h"
207262
export *
208263
}
209264

265+
module ctype {
266+
header "corecrt_wctype.h"
267+
export *
268+
}
269+
210270
module stdio {
211271
header "corecrt_wstdio.h"
212272
export *
@@ -227,4 +287,3 @@ module corecrt [system] {
227287
export *
228288
}
229289
}
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)