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

Stripping static and shared libraries of iwasm to reduce binary size #2431

Merged

Conversation

cngzhnp
Copy link
Contributor

@cngzhnp cngzhnp commented Aug 7, 2023

Reduce iwasm static and shared library size when build type is "Release". It remains as it is when build type was selected Debug.

Before stripping the shared and static library size:

-rwxr-xr-x 1 546184 Aug 7 15:10 libiwasm.so
-rw-r--r-- 1 932658 Aug 7 15:10 libvmlib.a

After stripping the shared and static library size:

-rwxr-xr-x 1 485536 Aug 7 15:09 libiwasm.so
-rw-r--r-- 1 489030 Aug 7 15:09 libvmlib.a

CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
cngzhnp added a commit to cngzhnp/wasm-micro-runtime that referenced this pull request Aug 8, 2023
@cngzhnp cngzhnp force-pushed the feature/striping_binary_to_reduce_size branch from d93c7c4 to eb30fc0 Compare August 8, 2023 06:23
Copy link
Contributor

@wenyongh wenyongh left a comment

Choose a reason for hiding this comment

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

LGTM

@wenyongh wenyongh merged commit 7e3a29d into bytecodealliance:main Aug 9, 2023
1 check passed
yamt added a commit to yamt/wasm-micro-runtime that referenced this pull request Oct 24, 2023
…ry size (bytecodealliance#2431)"

This reverts commit 7e3a29d.

* it doesn't work for macOS. ("unrecognized option: --strip-all")

* it doesn't work for ubuntu.
  bytecodealliance#2665
wenyongh pushed a commit that referenced this pull request Oct 25, 2023
…ry size (#2431)" (#2669)

This reverts commit 7e3a29d:
* it doesn't work for macOS. ("unrecognized option: --strip-all")
* it doesn't work for ubuntu.
  #2665
victoryang00 pushed a commit to victoryang00/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…ytecodealliance#2431)

Reduce iwasm static and shared library size when CMAKE_STRIP is set and the
build type is "Release". It remains as it is when build type was selected Debug.
victoryang00 pushed a commit to victoryang00/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…ry size (bytecodealliance#2431)" (bytecodealliance#2669)

This reverts commit 7e3a29d:
* it doesn't work for macOS. ("unrecognized option: --strip-all")
* it doesn't work for ubuntu.
  bytecodealliance#2665
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.

None yet

2 participants