shaderc icon indicating copy to clipboard operation
shaderc copied to clipboard

Excessively large combined static binaries

Open kotauskas opened this issue 4 years ago • 4 comments

The precompiled binaries offer the file shaderc_combined.lib (on Windows; the Linux ones are named accordingly), which is supposed to be the entire library in one statically linked file. The only issue with it is that it takes up 600 MB disk space just as a static library, which is, to say the least, an undesirable number, especially for games, where it's intended to be embedded.

Is there a way to avoid inflating the resulting executable file to this number without using DLL dependencies?

kotauskas avatar Apr 12 '20 19:04 kotauskas

Are you building Debug or Release. The default is Debug.

dj2 avatar Apr 13 '20 00:04 dj2

Are you building Debug or Release. The default is Debug.

@dj2 I'm not building it myself. The readme links to this file.

kotauskas avatar Apr 13 '20 21:04 kotauskas

The generated binaries are the most recent build artifact from the CQ bots, so will have all of the features turned on, all of the third_party libraries baked in, and probably some testing code.

These binaries are unsupported and are supplied as FYI downloads. If you need to change build options to shrink them, you will have to build them yourself.

I had updated part of the documentation about them being unsupported, but it appears there is multiple places they are linked, I will add more sign posts about them.

zoddicus avatar Apr 14 '20 15:04 zoddicus

FYI dneto0@

zoddicus avatar Apr 14 '20 15:04 zoddicus