Files
swift-mirror/userdocs/diagnostics/option-obsoleted-by-module-selectors.md
Allan Shortlidge 902f13a132 AST: Add group IDs to diags for module interface option obsoletion..
Makes it possible for users of `-warnings-as-errors` to control the behavior of
warnings about the obsoletion of module interface emission options.

Resolves rdar://174787052.
2026-04-15 13:08:31 -07:00

937 B

Option obsoleted by module selectors (OptionObsoletedByModuleSelectors)

Warnings that indicate a compiler option has been obsoleted by the module selectors feature (SE-0491).

Overview

The module selectors feature superseded certain compiler options related to controlling the contents of generated .swiftinterface files. When one of these obsoleted options is passed to the compiler, it is ignored and a warning is emitted:

warning: ignoring '<option>'; this option has been obsoleted by module selectors (add '-disable-module-selectors-in-module-interface' to restore original behavior) [#OptionObsoletedByModuleSelectors]

To silence the warning, remove the obsoleted option from your build settings. If you need the original behavior that the option provided, pass -disable-module-selectors-in-module-interface instead.