Skip to content
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

Set minimum Windows API to Windows 8 #11796

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

puffnfresh
Copy link
Member

Anything less won't compile because we're using GetCurrentThreadStackLimits from Windows 8.

Motivation

Discovered when trying to compile under mingw64, which seems to set a value of 0x0601 (Windows 7)

Context

https://learn.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?view=msvc-170

Anything less won't compile because we're using
GetCurrentThreadStackLimits from Windows 8.
@puffnfresh
Copy link
Member Author

I know that a goal of Windows 10 probably makes more sense, since everything else is EOL, but we're actually not using any recent API (yet)

@@ -91,6 +91,7 @@ ifdef HOST_WINDOWS
#
# TODO do not do this, and instead do fine-grained export annotations.
GLOBAL_LDFLAGS += -Wl,--export-all-symbols
GLOBAL_CXXFLAGS += -D_WIN32_WINNT=0x0602
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a comment here which Windows version this denotes.

@Ericson2314
Copy link
Member

Also don't forget the Meson build! The windows one will be gone shortly.

@Ericson2314 Ericson2314 merged commit 9fdbefe into NixOS:master Nov 4, 2024
11 checks passed
@Ericson2314 Ericson2314 deleted the windows-build/minimum-sdk branch November 4, 2024 18:21
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.

3 participants