Replacement of local crops with alternative varieties adapted to future conditions may improve food security under climate change. Here the authors apply landscape genomics and ensemble climate modelling to pearl millet in West Africa, supporting the potential of transfrontier assisted seed exchange.