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

[build] Enable strip for libtaichi_c_api.so with Release Build #6845

Merged
merged 16 commits into from
Dec 13, 2022

Conversation

jim19930609
Copy link
Contributor

@jim19930609 jim19930609 commented Dec 9, 2022

Issue: #6793

  Size (Original) Size (Optimized)
Vulkan 14 MB 1.5 MB
Vulkan + LLVM 82 MB 51 MB

libtaichi_c_api.so built with LLVM does not benefit much from function level linking, mainly because libLLVM.a is not compiled with -ffunction-sections -fdata-sections. We'll have that fixed later.

@netlify
Copy link

netlify bot commented Dec 9, 2022

Deploy Preview for docsite-preview canceled.

Name Link
🔨 Latest commit 3b7b764
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/63980e9928af4c00096e83f9

Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

Thanks!

cmake/TaichiCAPI.cmake Outdated Show resolved Hide resolved
@jim19930609 jim19930609 merged commit 9f78a2f into taichi-dev:master Dec 13, 2022
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
…i-dev#6845)

Issue: taichi-dev#6793

  | Size (Original) | Size (Optimized)
-- | -- | --
Vulkan | 14 MB | 1.5 MB
Vulkan + LLVM | 82 MB | 51 MB

libtaichi_c_api.so built with LLVM does not benefit much from function
level linking, mainly because libLLVM.a is not compiled with
`-ffunction-sections -fdata-sections`. We'll have that fixed later.
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