-
Notifications
You must be signed in to change notification settings - Fork 827
Exclude the mimalloc files from the Binaryen install #7386
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,5 +26,5 @@ if(MIMALLOC_STATIC) | |
| # (They can still be enabled via MIMALLOC_VERBOSE=1 wasm-opt ...) | ||
| add_compile_definitions(MI_DEBUG=0) | ||
|
|
||
| add_subdirectory(mimalloc) | ||
| add_subdirectory(mimalloc EXCLUDE_FROM_ALL) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From briefly looking up
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, I think what's happening here is that the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I couldn't really find another way to prevent the installation (see also https://discourse.cmake.org/t/hot-to-make-add-subdirectory-prevent-install-but-still-build-as-part-of-all/8698) |
||
| endif() | ||
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.
When using the emscripten-releases build script I got a very strange behavior; namely that the
LINUXvariable was empty, butCMAKE_SYSTEM_NAMEwas set toLinuxas expected. I couldn't figure out what was causing it. This change works around that.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, I figure it out; the
LINUXvariable was introduced in CMake 3.25 but we support 3.16 and use 3.21 on our bots. This is the right way to do it on those versions, so I'll just update the commit message.