Your 40C doesn't equal my 40C when one country has high humidity, and the other has close to zero. That's precisely what the "wet bulb temperature" for humans is all about.
I can imagine it has big impact on productivity of anybody not under 24h AC, but there is still construction, roadwork, maintenance etc. work done. I guess a mix of adaptation from birth plus suffering through work thats just harder than elsewhere, but still possible.
As things get hotter places like Iran and Pakistan can adapt with more AC. The problems will be worse for places without electricity grids and a population that is too poor for alternative means like running AC from solar.