what the hell are we going to do?
In the very long term, stop climate change.
In the long term - dig in and design heat shelters, most likely. Because it's cooler underground and heat waves will pass. When a bad one comes, people would stop working and find shelter from it. One can even accumulate cold in a thermal store during cool periods and distribute the cooling effect to premises during heat waves.
In the short term - those who can (there will be an equality and access problem) and those who must (who cannot stop working) would install air conditioners and similar stuff.
Well, a heat wave cannot last forever. And in terms of cold storage - it's +30 C over here currently already for a week, it has been 1.5 months since the last snowfall - and the last pile of snow on the local airport is still melting. Darkened, not recognizable as the substance it used to be, but existing, without people making the slightest effort to protect it. :)