-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
build: check Apple clang version in configure script #59358
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
Conversation
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. |
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. |
Also, Xcode and Visual Studio are both continuously updated by their editors. It's more difficult to install an earlier version than the latest. |
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/build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment is non-blocking.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apple clang version number is not the same as the actual LLVM version PR-URL: #59358 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
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 <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Apple clang version number is not the same as the actual LLVM version PR-URL: nodejs#59358 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
For Clang >= 19.1.0, Xcode 16.3 or Visual Studio 17.13 is required. PR-URL: nodejs#59358 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Apple clang version number is not the same as the actual LLVM version PR-URL: nodejs#59358 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
For Clang >= 19.1.0, Xcode 16.3 or Visual Studio 17.13 is required. PR-URL: nodejs#59358 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Apple clang version number is not the same as the actual LLVM version PR-URL: nodejs#59358 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
For Clang >= 19.1.0, Xcode 16.3 or Visual Studio 17.13 is required. PR-URL: nodejs#59358 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Apple clang version number is not the same as the actual LLVM version