Skip to content

Commit 47d8e74

Browse files
authored
Add -disable-sil-linking to four simple SIL serialization tests. (#9723)
What these tests are testing has nothing to do with whether or not we deserialize anything from the standard library, and not doing so saves more than two minutes (single-threaded) on my machine from each test.
1 parent c0623c4 commit 47d8e74

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/Serialization/alignment.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: rm -rf %t
22
// RUN: mkdir -p %t
33
// RUN: %target-swift-frontend %s -emit-module -parse-as-library -o %t
4-
// RUN: %target-sil-opt -enable-sil-verify-all %t/alignment.swiftmodule -o - | %FileCheck %s
4+
// RUN: %target-sil-opt -disable-sil-linking -enable-sil-verify-all %t/alignment.swiftmodule -o - | %FileCheck %s
55

66
//CHECK: @_alignment(16) struct Foo {
77
@_alignment(16) struct Foo {}

test/Serialization/default-witness-table-deserialization.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend %s -module-name Test -sil-serialize-all -emit-module -emit-module-path - -o /dev/null | %target-sil-opt -enable-sil-verify-all -module-name="Test" | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -module-name Test -sil-serialize-all -emit-module -emit-module-path - -o /dev/null | %target-sil-opt -enable-sil-verify-all -disable-sil-linking -module-name="Test" | %FileCheck %s
22

33
// Check that default witness tables are properly deserialized.
44
// rdar://problem/29173229

test/Serialization/global_init.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: mkdir -p %t
33
// RUN: %target-swift-frontend -emit-module -parse-as-library -sil-serialize-all -o %t %s
44
// RUN: llvm-bcanalyzer %t/global_init.swiftmodule | %FileCheck %s -check-prefix=BCANALYZER
5-
// RUN: %target-sil-opt -enable-sil-verify-all %t/global_init.swiftmodule | %FileCheck %s
5+
// RUN: %target-sil-opt -enable-sil-verify-all -disable-sil-linking %t/global_init.swiftmodule | %FileCheck %s
66

77
// BCANALYZER-NOT: UnknownCode
88

test/Serialization/serialize_attr.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: mkdir -p %t
33
// RUN: %target-swift-frontend -emit-module -parse-as-library -sil-serialize-all -o %t %s
44
// RUN: llvm-bcanalyzer %t/serialize_attr.swiftmodule | %FileCheck %s -check-prefix=BCANALYZER
5-
// RUN: %target-sil-opt -enable-sil-verify-all %t/serialize_attr.swiftmodule | %FileCheck %s
5+
// RUN: %target-sil-opt -enable-sil-verify-all -disable-sil-linking %t/serialize_attr.swiftmodule | %FileCheck %s
66

77
// BCANALYZER-NOT: UnknownCode
88

0 commit comments

Comments
 (0)