Skip to content

Hide inaccessible symbols in internal linkage#5548

Merged
dsharletg merged 3 commits intomasterfrom
dsharletg/internal-symbols
Dec 14, 2020
Merged

Hide inaccessible symbols in internal linkage#5548
dsharletg merged 3 commits intomasterfrom
dsharletg/internal-symbols

Conversation

@dsharletg
Copy link
Contributor

I had to debug an issue on the arm-32 buildbots recently, and linking libHalide.so was taking ages to run. I don't know if this helps, but it seems like a good thing to do regardless. We already do a lot of this, just not consistently.

Related to #4651.

@alexreinking alexreinking added this to the v12.0.0 milestone Dec 11, 2020
@abadams
Copy link
Member

abadams commented Dec 11, 2020

+1

I think we should export all symbols to enable crazy experimentation, but only symbols that have a definition in Halide.h. So things inside c++ files that don't appear in a header should definitely be in an anonymous namespace.

@dsharletg
Copy link
Contributor Author

Note that I did move some of the GPU codegen classes to the cpp file, so this PR is hiding some symbols from the header.

@abadams
Copy link
Member

abadams commented Dec 11, 2020

I noticed that, but those things really should have been internal.

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.

4 participants