You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
operator redeclaration make verification fail of swiftinterface #481
In fact, there is a workaround. That is giving an no-verify-emitted-module-interface option to compiler. But I think it should be not user's concern.
I'm not very familiar with Bezel, but I'm not sure there is a way library authors can specify compiler directives when the code is compiled as a static library. The formally supported installation modes build frameworks instead of a static lib, so I think this should be handled on the API users' side.
On that note, the specific issue on operators can be avoided at least, since CoreStore can just declare it once for the whole module. I'll push something later just to avoid this case, but I'd warn that this fix is local to CoreStore. If an external static library declares their own .= and .== operators it's likely you will have this same issue anyway.
Activity
JohnEstropia commentedon Jun 15, 2023
Interesting. Can you tell me how (SPM, Cocoapods, etc.) you are importing CoreStore into your dependencies?
JCSooHwanCho commentedon Jun 15, 2023
I made it as static .xcframework using bazel.
In fact, there is a workaround. That is giving an
no-verify-emitted-module-interfaceoption to compiler. But I think it should be not user's concern.JohnEstropia commentedon Jun 15, 2023
I'm not very familiar with Bezel, but I'm not sure there is a way library authors can specify compiler directives when the code is compiled as a static library. The formally supported installation modes build frameworks instead of a static lib, so I think this should be handled on the API users' side.
On that note, the specific issue on operators can be avoided at least, since CoreStore can just declare it once for the whole module. I'll push something later just to avoid this case, but I'd warn that this fix is local to CoreStore. If an external static library declares their own
.=and.==operators it's likely you will have this same issue anyway.JCSooHwanCho commentedon Jun 15, 2023
Conflicting with other module is just potential problem, but conflicting within module is present problem. How about focusing on present problem?
JohnEstropia commentedon Jun 15, 2023
Yes, I mentioned here:
Feel free to make a PR ahead, if you have time.
JCSooHwanCho commentedon Jun 15, 2023
I'll make it. Thanks for quick reply!