Skip to content

Commit 82ef155

Browse files
authored
Merge pull request #9234 from practicalswift/reproducibility-builds-ii-another-try
2 parents aad0baf + e4073da commit 82ef155

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// RUN: rm -rf %t && mkdir -p %t
2+
// RUN: %target-build-swift -O -g -module-name foo -emit-module %s -o %t/run-1.module
3+
// RUN: %target-build-swift -O -g -module-name foo -emit-module %s -o %t/run-2.module
4+
// RUN: cmp %t/run-1.module %t/run-2.module
5+
// RUN: cmp %t/run-1.swiftdoc %t/run-2.swiftdoc
6+
print("foo")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: rm -rf %t && mkdir -p %t
2+
// RUN: %target-build-swift -O -g -module-name foo -emit-sib %s -o %t/run-1.sib
3+
// RUN: %target-build-swift -O -g -module-name foo -emit-sib %s -o %t/run-2.sib
4+
// RUN: cmp %t/run-1.sib %t/run-2.sib
5+
print("foo")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: rm -rf %t && mkdir -p %t
2+
// RUN: %target-build-swift -O -g -module-name foo -emit-sibgen %s -o %t/run-1.sibgen
3+
// RUN: %target-build-swift -O -g -module-name foo -emit-sibgen %s -o %t/run-2.sibgen
4+
// RUN: cmp %t/run-1.sibgen %t/run-2.sibgen
5+
print("foo")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: rm -rf %t && mkdir -p %t
2+
// RUN: %target-build-swift -O -g -module-name foo -emit-tbd %s -o %t/run-1.tbd
3+
// RUN: %target-build-swift -O -g -module-name foo -emit-tbd %s -o %t/run-2.tbd
4+
// RUN: diff -u %t/run-1.tbd %t/run-2.tbd
5+
print("foo")

0 commit comments

Comments
 (0)