I've looked at it a bit and I think the easiest solution is to change the test `compiler != "dmd" || !generate_binary` to `compiler != "dmd" || !generate_binary || generate_static_library`.