Insulating homes and offices is going to be critical for countries facing extreme heat, also build in passive stores of energy, a large tank of water and other thermal mass, to moderate the temperature during a day. After a few days of 40 °C temperatures, the resilience may start to be not so effective though. Shading will also be essential to reduce heat load.
Passive solar may not tolerate the heat very well, perhaps solar-thermal is the way to go.