https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95577
--- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Alexandre Oliva from comment #5) > but is .dSYM ever generated when no -g is present? If it was that would e an error, so correctly would cause the test to fail. That's why I was doing: if {[string match "-g*" "$opt"]} { set saw_debug 1 } If you are going to remove all debug tests, then the .dSYM case would not be needed indeed