-
Notifications
You must be signed in to change notification settings - Fork 824
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
Makefile checks for LLVM 10, but documentation recommends LLVM 11. #1981
Makefile checks for LLVM 10, but documentation recommends LLVM 11. #1981
Comments
Your comment is completely on point, @TylerNowicki! We did the comparison that way because we initially only supported one version of LLVM. |
Actually, |
I noticed in the docs here
under Requirements "It currently requires LLVM 10." |
2008: Improved Apple Silicon & LLVM 11 support r=syrusakbary a=syrusakbary <!-- Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test: https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests --> # Description This PR: * [x] Adds support for LLVM 11 * [x] Adds support for llvm-native in Apple Silicon * [x] Sign the `wasmer` and `wapm` binaries in macOS (so they can run smoothly upon installation) This PR fix #1984 and fix #1981. <!-- Provide details regarding the change including motivation, links to related issues, and the context of the PR. --> # Review - [ ] Add a short description of the the change to the CHANGELOG.md file Co-authored-by: Syrus Akbary <[email protected]>
The makefile performs this check at line 22
ifneq (,$(findstring 10,$ (LLVM_VERSION)))
But if we use LLVM 11 this will fail. Yet, documentation recommends LLVM 11
https://docs.wasmer.io/ecosystem/wasmer/building-from-source#llvm-compiler
The correct way to do this is to parse the major and minor versions and compare them separately.
See: https://stackoverflow.com/questions/3728372/version-number-comparison-inside-makefile
The text was updated successfully, but these errors were encountered: