Assuming that the sketch is to scale, my initial thought is that the building would not contribute much of anything to the load on the retaining wall or to instability of the slope above the wall, unless maybe the building fails structurally. Look elsewhere on eng-tips for discussion of Mononobe-Okabe method for seismic loads on walls. That's basically Coulomb active pressure with a horizontal component instead of just gravity. With no horizontal component, the base of the active wedge is very steep, getting flatter with a steeper slope above the wall, and higher acceleration. Unless the acceleration is quite high, it probably wouldn't flatten out enough to reach the building. M-O is not an exact model of reality, but is a reasonable approximation. Another consideration is that the building and the air that it contains most likely weigh much less than an equivalent volume of soil, so you would not expect it to have any worse effect on the slope than if it was level ground.
Regards,
DRG