mirror of
https://github.com/apple/swift.git
synced 2026-10-28 21:15:56 +01:00
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.
937 B
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.