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

@@ -0,0 +1,12 @@
// RUN: %empty-directory(%t)
// RUN: touch %t/file-01.swift %t/file-02.swift %t/file-03.swift
// RUN: %swiftc_driver -driver-print-jobs -driver-skip-execution -j 3 -emit-module -module-name foo -emit-module-interface %t/file-01.swift %t/file-02.swift %t/file-03.swift -verify-emitted-module-interface -enable-library-evolution >%t/evolution.txt
// RUN: %swiftc_driver -driver-print-jobs -driver-skip-execution -j 3 -emit-module -module-name foo -emit-module-interface %t/file-01.swift %t/file-02.swift %t/file-03.swift -verify-emitted-module-interface >%t/no-evolution.txt
// RUN: %FileCheck %s --check-prefix=CHECK_EVOLUTION <%t/evolution.txt
// RUN: %FileCheck %s --check-prefix=CHECK_NO_EVOLUTION <%t/no-evolution.txt
// CHECK_EVOLUTION: -typecheck-module-from-interface
// CHECK_NO_EVOLUTION-NOT: -typecheck-module-from-interface