I suspect that Saudi is saying that they will go public with an existing nuclear weapons program in the event Iran produces a weapon, rather than announcing that they would initiate such a program in response to an Iranian nuclear weapon. https://www.khaama.com/saudi-crown-prince-warns-of-nuclear-ambitions-in-response-to-iran-hints-at-closer-ties-with-israel/