Skip to content

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
sbc100 added a commit that referenced this pull request Oct 26, 2025
sbc100 added a commit that referenced this pull request Oct 27, 2025
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.

3 participants