-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
std::format does not play well with macos #822
Comments
We have at least one macOS CI runner in ada: https://github.com/ada-url/ada/actions/runs/12602577753/job/35125940436?pr=785 |
It builds fine in our other macos Runner: |
I think the minimum deployment target of Node.js makes it really hard to support std::format |
@anonrig What is the Apple/LLVM version? We can drop the std::format thing, it is not at all essential... but std::format is C++20 and supported in LLVM as of LLVM 14. |
node.js supports llvm 12 or higher. https://github.com/nodejs/node/blob/main/BUILDING.md |
That C++20 support is described here: |
But yeah, LLVM/libc++ 12 probably does not support std::format. :-/ |
What do you think about checking for llvm version before using std::format? |
The clean way is to check __cpp_lib_format. |
See e297f7c |
Referencing https://github.com/nodejs/node/actions/runs/12600455701/job/35119524310?pr=56452, std::format in URLPattern branch does not play well with macOS. cc @lemire
The text was updated successfully, but these errors were encountered: