Export diff variables to turn its functionality off

From #5602.