8000 PoC feature: drop functions from the runtime by mcourteaux · Pull Request #8653 · halide/Halide · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PoC feature: drop functions from the runtime #8653

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcourteaux
Copy link
Contributor

Proof of Concept: I know that the long-term solution is more elaborate (i.e. runtime function renaming), but this 50 cent hack does the trick for me without any manual steps in my build process.

The HL_RUNTIME_DROP_FUNCS environment variable is checked for a comma-separated list of function names to remove from the runtime. Instead of actually deleting them, their body is removed, and their linkage is changed to extern.

@zvookin @abadams Do we want this feature? If so, do we need any changes?

This fixed my issue against which I was battling for 2 days with the Windows linker. Tested this on both Linux and Windows with success.

…P_FUNCS environment variable, specifying a comma-separated list.
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
0