add swift optimization levels for debug and release