Skip to content

[libc++] Drop routing to nonexistent locale shims.#89

Open
jmcarp wants to merge 1 commit intoClickHouse:ClickHouse/release-22.xfrom
jmcarp:jmcarp/drop-locale-shim
Open

[libc++] Drop routing to nonexistent locale shims.#89
jmcarp wants to merge 1 commit intoClickHouse:ClickHouse/release-22.xfrom
jmcarp:jmcarp/drop-locale-shim

Conversation

@jmcarp
Copy link
Copy Markdown

@jmcarp jmcarp commented May 8, 2026

LLVM previously included shims for strtoll_l and strtoull_l for distributions that don't expose those functions. However, with the upgrade to 22.x, LLVM learned to parse integers itself, without relying on those functions, and dropped the shim. Routing to __locale_dir/locale_base_api/musl.h now fails, since the shim was removed on upgrade.

This patch drops the now-unnecessary routing to a file that doesn't exist. Note that we don't need to backport this change to upstream LLVM, since the shim and routing to it are already removed there.

cc @alexey-milovidov

LLVM previously included shims for strtoll_l and strtoull_l for
distributions that don't expose those functions. However, with the
upgrade to 22.x, LLVM learned to parse integers itself, without relying
on those functions, and dropped the shim. Routing to
__locale_dir/locale_base_api/musl.h now fails, since the shim was
removed on upgrade.

This patch drops the now-unnecessary routing to a file that doesn't
exist. Note that we don't need to backport this change to upstream LLVM, since
the shim and routing to it are already removed there.
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.

1 participant