check {compile_options,Os} in transform_module