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

[aot] Clean up exported symbols for libtaichi_c_api.so #6140

Merged
merged 21 commits into from
Dec 1, 2022

Conversation

jim19930609
Copy link
Contributor

@jim19930609 jim19930609 commented Sep 22, 2022

Issue: fix #5872, RFC #6722, #6793

*Note: This PR will also remove GGUI symbols from libtaichi_c_api.so on MacOS. Do not have this PR merged until we replaced all the GGUI renderers in taichi-aot-demos.

After this PR, libtaichi_c_api.so exports the following symbols:
Linux: c_api_linux_exports.txt
Windows: c_api_windows_exports.txt
MacOS: c_api_mac_exports.txt

@netlify
Copy link

netlify bot commented Sep 22, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 4ff3e2d
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/638808d83cff26000877877e
😎 Deploy Preview https://deploy-preview-6140--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@jim19930609 jim19930609 changed the title [Do Not Merge] Avoid third-party symbol exportations for libtaichi_c_api.so [Do Not Merge] Avoid third-party symbol exports for libtaichi_c_api.so Sep 22, 2022
@jim19930609 jim19930609 marked this pull request as draft November 9, 2022 03:20
@jim19930609 jim19930609 marked this pull request as ready for review November 24, 2022 08:16
@jim19930609 jim19930609 changed the title [Do Not Merge] Avoid third-party symbol exports for libtaichi_c_api.so [aot] Avoid third-party symbol exports for libtaichi_c_api.so Nov 24, 2022
@taichi-gardener taichi-gardener added this to In progress in AOT Nov 24, 2022
@jim19930609 jim19930609 changed the title [aot] Avoid third-party symbol exports for libtaichi_c_api.so [aot] Clean up exported symbols for libtaichi_c_api.so Nov 30, 2022
Copy link
Member

@PENGUINLIONG PENGUINLIONG left a comment

Choose a reason for hiding this comment

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

lgtm!

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.

LGTM!

c_api/version_scripts/export_symbols_mac.lds Show resolved Hide resolved
.github/workflows/scripts/aot-demo.sh Show resolved Hide resolved
@jim19930609 jim19930609 merged commit b3dc51f into taichi-dev:master Dec 1, 2022
AOT automation moved this from In progress to Done Dec 1, 2022
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
Issue: fix taichi-dev#5872, RFC taichi-dev#6722

*Note: This PR will also remove GGUI symbols from libtaichi_c_api.so on
MacOS. Do not have this PR merged until we replaced all the GGUI
renderers in taichi-aot-demos.

**After this PR, libtaichi_c_api.so exports the following symbols:**
Linux:
[c_api_linux_exports.txt](https://github.com/taichi-dev/taichi/files/10102729/c_api_linux_exports.txt)
Windows:
[c_api_windows_exports.txt](https://github.com/taichi-dev/taichi/files/9624666/c_api_windows_exports.txt)
MacOS:
[c_api_mac_exports.txt](https://github.com/taichi-dev/taichi/files/9624830/c_api_mac_exports.txt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
AOT
Done
Development

Successfully merging this pull request may close these issues.

[aot] libtaichi_c_api.so exports unnecessary third-party symbols
3 participants