ModuleInterface: avoid verifying textual interfaces without -enable-library-evolution

Textual interfaces without -enable-library-evolution aren't properly supported. We should
avoid verifying them too.

rdar://68223978
This commit is contained in:
Xi Ge
2020-09-09 12:16:09 -07:00
parent 7dcb0ea31a
commit c25d6ff08b
2 changed files with 13 additions and 0 deletions

View File

@@ -2217,6 +2217,7 @@ void Driver::buildActions(SmallVectorImpl<const Action *> &TopLevelActions,
#endif
if (MergeModuleAction
&& Args.hasArg(options::OPT_enable_library_evolution)
&& Args.hasFlag(options::OPT_verify_emitted_module_interface,
options::OPT_no_verify_emitted_module_interface,
verifyInterfacesByDefault)) {