Skip to content

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

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:w-prefill-sizes
Closed

vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:w-prefill-sizes

Conversation

@vszakats

@vszakats vszakats commented Feb 24, 2025 •

Copy link
Copy Markdown
Member

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
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 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 curl#16394
Closes curl#16464
vszakats added a commit to curl/curl-for-win that referenced this pull request Feb 23, 2026
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