Seems to be dependent on specific compiler/cmake version. Is a typical mixture of missing dependencies between libraries, object files which do not get referenced from other files in the target, and whole-archive linking of the blender_test target. Pull Request: https://projects.blender.org/blender/blender/pulls/122801