spirv-tools: build static library as well#281067
spirv-tools: build static library as well#281067crueter wants to merge 1 commit intoHomebrew:mainfrom
Conversation
Not sure why this was off. It's particularly useful for certain CI applications where SPIRV-Tools is better off being linked statically
|
I think as per brews policy, it is preferred to have shared libs. https://docs.brew.sh/Acceptable-Formulae#shared-vs-static-libraries. And if there are static libs required formulae might ship both. (ignore this if you actually meant to have shared AND static) |
|
Yeah I want to have shared and static. Their handling is kind of goofed up right now, which might cause the build failure; I do have a pending PR there to fix it KhronosGroup/SPIRV-Tools#6481 but it stalled because I'm lazy and also haven't called for reviews yet. Will investigate more when I next get access to my ARM linux machine |
|
I don't see any changes from your PR, there isn't easy way to install dynamic and static at the same time and then what is the difference between as-is and to-be? |
|
so the cmake file says this I would lie if I say I am not confused |
|
Yeah, it might need to wait on my PR. MSYS2 does some weird stuff just to get it to work: https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-spirv-tools/PKGBUILD I'll see if I can fast-track that PR to prevent this nonsense. |
|
However, it is possible that for the time being this will have to build twice. Fixing the shared/static library definitions at the SPIRV-Tools level is a considerably larger task that is well outside the scope of that PR. |
Not sure why this was off. It's particularly useful for certain CI applications where SPIRV-Tools is better off being linked statically
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>?brew test <formula>?brew audit --strict <formula>(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it passbrew audit --new <formula>?