Closed simonjbeaumont closed 4 months ago
The contents of this file are automatically generated. We need to understand why the most recent run of the vendoring script didn’t catch these.
Because you since approved the PR, I'm assuming you missed the part of the patch that updated the vendor script and are now satisfied that the patch is sound.
That assumption is exactly right. I blame the beach being too bright for me to see my phone screen. 🙈
Motivation
When building projects that depend on both Swift Crypto and JWTKit on Linux, we hit a symbol clash. Both modules vendor in their own copy of BoringSSL and go to lengths to namespace the symbols, but there were some symbols that were not prefixed, which resulted in compilation failures due to clashing macro expansions, e.g.
This appears to happen for the following symbols:
Looks like all the
*_delete_if
functions generated by the many uses ofDEFINE_STACK_OF
macro were not prefixed.Modifications
Update the vendor script and rerun to ensure
delete_if
stack functions are prefixed.Result
Can depend on both Swift Crypto and JWTKit in the same project.
Notes
Following this fix we should take the time to see if we can statically audit for non-prefixed symbols.