-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Platform: Update module maps for the static SDK #81826
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
base: main
Are you sure you want to change the base?
Platform: Update module maps for the static SDK #81826
Conversation
Building with the Windows static SDK uncovered issues in the Windows module maps. Some of the headers were missing and others had incorrect layering. This updates the module maps to build with the static Windows SDK.
@swift-ci please test Windows platform |
@@ -175,6 +202,11 @@ module ucrt [system] { | |||
} | |||
} | |||
|
|||
module _corecrt_memcpy_s [system] [no_undeclared_includes] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this module required?
@@ -101,6 +123,11 @@ module ucrt [system] { | |||
export * | |||
} | |||
|
|||
module stdnoreturn { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this textual?
textual header "errno.h" | ||
} | ||
|
||
module _stdnoreturn [system] [no_undeclared_includes] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this module used? Especially given the ucrt.stdnoreturn
module, this seems unused.
textual header "ctype.h" | ||
} | ||
|
||
module _errno [system] [no_undeclared_includes] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given ucrt.errno
, is this module used?
header "stdlib.h" | ||
export * | ||
} | ||
|
||
module _ctype [system] [no_undeclared_includes] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given ucrt.ctype
, is this module used?
@@ -26,31 +26,48 @@ module _complex [system] [no_undeclared_includes] { | |||
} | |||
|
|||
module _stddef [system] [no_undeclared_includes] { | |||
header "stddef.h" | |||
export * | |||
use corecrt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the removal of the use _stddef
is ucrt
, is this used?
Building with the Windows static SDK uncovered issues in the Windows module maps. Some of the headers were missing and others had incorrect layering. This updates the module maps to build with the static Windows SDK.