The farmer could choose plants that lose less water, or store water more efficiently. He could then breed these plants together and repeat this process with the daughter plants, and their daughter plants, and so on.
This would make more plants with the chosen plants’ “good genes”, and therefore making more plants that can withstand drought.