Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Steelskin
Copy link
Contributor

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.

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.
@Steelskin Steelskin requested a review from a team as a code owner May 29, 2025 01:18
@compnerd
Copy link
Member

@swift-ci please test Windows platform

@@ -175,6 +202,11 @@ module ucrt [system] {
}
}

module _corecrt_memcpy_s [system] [no_undeclared_includes] {
Copy link
Member

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 {
Copy link
Member

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] {
Copy link
Member

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] {
Copy link
Member

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] {
Copy link
Member

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
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants