-
Notifications
You must be signed in to change notification settings - Fork 756
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
Simplify cmake by having a single binaryen library target #7238
Conversation
Instead of declaring a separate static library target for each subdirectory, declare a single binaryen library target up front and then add sources to it from each subdirectory. Requires updating the minimum cmake version to avoid policy errors.
# https://packages.ubuntu.com/bionic/cmake | ||
cmake_minimum_required(VERSION 3.10.2) | ||
# https://packages.ubuntu.com/focal/cmake | ||
cmake_minimum_required(VERSION 3.16.3) |
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.
lgtm aside from this - I'm not sure what our policy is on bumping this version. Do we have a sense that practically all linux distros are using newer versions? (Focal is from 2020 so that sounds good)
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.
Our policy in practice so far has been to match the minimum version used by default on the distros used on Emscripten CI. This follows that policy AFAICT.
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.
Ok, sgtm.
Instead of declaring a separate static library target for each
subdirectory, declare a single binaryen library target up front and then
add sources to it from each subdirectory.
Requires updating the minimum cmake version to avoid policy errors.