Skip to content

Conversation

trevyn
Copy link
Contributor

@trevyn trevyn commented Oct 17, 2023

Mark the following symbols as static to prevent duplicate definitions:

__builtin_ctz
__builtin_clz
__builtin_clzll
__builtin_sadd_overflow

Without these then all of these functions show up in all object files which include int_lib.h on Windows. This'll help prevent duplicate symbols by ensuring they're not exported.

See:

rust-lang/compiler-builtins#167
https://reviews.llvm.org/D34599

@trevyn trevyn changed the title Mark int_lib.h builtins as static [builtins] Mark int_lib.h builtins as static Oct 18, 2023
@trevyn
Copy link
Contributor Author

trevyn commented Oct 18, 2023

@compnerd Politely requesting review :)

@trevyn
Copy link
Contributor Author

trevyn commented Jan 19, 2024

ping @compnerd

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

Oof, nice catch!

@compnerd
Copy link
Member

@trevyn do you have commit access, or do you need this committed for you?

@trevyn
Copy link
Contributor Author

trevyn commented Jan 19, 2024

@compnerd I do not, please commit for me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants