Tomatoes are actually pretty robust, if you grow them properly.
The way I was taught to maximise survival / yield in hot climates is to grow as seedlings for a few weeks, until they're maybe 30cm or so tall. Dig holes ~ 25cm deep, flood / drain / flood / drain - and then take all but the upper few branches off the seedling, and plant, backfill with soil, so about 5m is above-ground.
Because they have adventitious rooting you've effectively just given them a massive reservoir of water retention. This is obviously expensive at scale (though not intrinsically infeasible) but works superbly well in hostile, arid climates.
I expect the next decade or two will force a lot of changes to the way food is grow in already marginal climates.