Fix error when building *_library targets directly
Fix error when building *_library targets directly

PiperOrigin-RevId: 219133111

bazelbuild/tulsi,pinterest/tulsi,pinterest/tulsi,pinterest/tulsi,bazelbuild/tulsi,bazelbuild/tulsi,pinterest/tulsi,bazelbuild/tulsi,bazelbuild/tulsi,pinterest/tulsi,bazelbuild/tulsi,pinterest/tulsi