Uh oh!
There was an error while loading. Please reload this page.
build: check Apple clang version in configure script - #59358
Conversation
legendecas
commented
Aug 5, 2025
I wonder if there are issues with lower clang versions (e.g. v17), other than nodejs/node-v8#302? Which was an unexpected version requirement. From nodejs/node-v8#302 (comment), it seems at least clang v17 is still supported. |
We should bump the BUILDING.md prerequisites as well:
Both toolchains are almost the second latest versions of platform toolchains. It seems a bit aggressive to me. |
targos
commented
Aug 5, 2025
Maybe not yet, but since v19 is widely available, I'm not sure it's that aggressive. V8 moves fast and we don't know for how long we'll be able to compile it with lower versions. Clang 18 and 19 also improve C++20 support. My hope is that we can stay with this new version requirement for a relatively long time. |
targos
commented
Aug 5, 2025
Also, Xcode and Visual Studio are both continuously updated by their editors. It's more difficult to install an earlier version than the latest. |
Uh oh!
There was an error while loading. Please reload this page.
Apple clang version number is not the same as the actual LLVM version
For Clang >= 19.1.0, Xcode 16.3 or Visual Studio 17.13 is required.
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot
commented
Aug 5, 2025
targos
commented
Aug 6, 2025
@nodejs/build |
| elif clang_version < (19, 1, 0) if is_clang else gcc_version < (12, 2, 0): | ||
| warn(f'C++ compiler (CXX={CXX}, {version_str}) too old, need g++ 12.2.0 or clang++ 19.1.0') | ||
| elif (is_apple and clang_version < (17, 0, 0) or not is_apple and clang_version < (19, 1, 0)) if is_clang else gcc_version < (12, 2, 0): | ||
| warn(f'C++ compiler (CXX={CXX}, {version_str}) too old, need g++ 12.2.0, clang++ 19.1.0, or Apple clang++ 17.0.0') |
There was a problem hiding this comment.
Non-blocking observation -- would it be potentially confusing to mention Apple clang if, for example, you get this warning message on something other than macOS (e.g Linux)?
Apple clang version number is not the same as the actual LLVM version PR-URL: #59358 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
nodejs-github-bot
commented
Aug 7, 2025
Landed in 0309806...3f6f6db |
For Clang >= 19.1.0, Xcode 16.3 or Visual Studio 17.13 is required. PR-URL: #59358 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Apple clang version number is not the same as the actual LLVM version PR-URL: nodejs#59358 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
For Clang >= 19.1.0, Xcode 16.3 or Visual Studio 17.13 is required. PR-URL: nodejs#59358 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Apple clang version number is not the same as the actual LLVM version