Skip to content
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

Merged
merged 5 commits into from
Jan 23, 2025

Conversation

tlively
Copy link
Member

@tlively tlively commented Jan 23, 2025

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.

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.
@tlively tlively requested a review from kripken January 23, 2025 19:14
@tlively
Copy link
Member Author

tlively commented Jan 23, 2025

@kripken, this is a hopefully non-controversial change that is independent of the larger architecture questions in #7235.

# 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)
Copy link
Member

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)

Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, sgtm.

@tlively tlively enabled auto-merge (squash) January 23, 2025 21:35
@tlively tlively merged commit 7074d87 into main Jan 23, 2025
13 checks passed
@tlively tlively deleted the cmake-single-lib-target branch January 23, 2025 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants