I have a relatively small, pure C project that needs to link with libshaderc. Before I added libshaderc as a dependency it took less than a second to compile just a few thousand lines of C code, but linking with libshaderc_combined adds 10 seconds to the build time, because I also have to link with the system math lib and the C++ stdlib. Is there a proper way to reduce the number of symbols I need to link (I only call around 5 functions from libshaderc) so that I can get my instant build times back?
#How to improve linking time of a large library.
10 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.
have you tried adding all the stdlib files to a precompiled header? that is probably where most the compile time comes from
wdym? the compile times aren't any longer really, the C interface to libshaderc does not include any stdlib files
the problem is linking the library into my executable
I guess you might just build a library for the functionality you are using in that case, that might get you back to instant build times.
oh wait sorry, yeah I see what you are saying. Not sure actually.
would need to see your build command I guess
fuck it im writing my own shader language glsl sucks anyway
This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.