[mac]added switch to build procedure.