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

cmake: pre-fill known type sizes for Windows OSes #16464

Closed
wants to merge 2 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Feb 24, 2025

To save configuration time.

After this patch, for mingw-w64 and MSVC curl's CMake builds pre-fill
almost all type sizes without auto-detection. In most cases this leaves
3 type size auto-detections. Those depend on 64/32-bitness, and time_t
also depends on CRT and custom options. Old mingw-w64 versions require
some extra detections. We recommend v3.0 or newer to avoid them.

For Windows CE, this patch pre-fills all type sizes.

If this is causing any issue, please report it and disable pre-filling
with -D_CURL_PREFILL=OFF in the meantime.

Cherry-picked from #16394

To save configuration time. After this patch, on Windows there remains
3 size detections. Those depend on 32/64-bitness and on other things
for `time_t`.

Cherry-picked from curl#16394
@github-actions github-actions bot added the build label Feb 24, 2025
@vszakats vszakats changed the title cmake: pre-fill known type sizes for Windows and Windows CE cmake: pre-fill known type sizes for Windows OSes Feb 24, 2025
@vszakats vszakats closed this in 29978df Feb 25, 2025
@vszakats vszakats deleted the w-prefill-sizes branch February 25, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant