Skip to content

Commit aa0ce22

Browse files
Merge pull request swiftlang#9028 from practicalswift/reproducible-builds
Add reproducibility tests for -emit-assembly, -emit-ir and -emit-silgen [WIP]
2 parents b853412 + 3e27346 commit aa0ce22

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed
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-assembly %s > %t/run-1.S
3+
// RUN: %target-build-swift -O -g -module-name foo -emit-assembly %s > %t/run-2.S
4+
// RUN: diff -u %t/run-1.S %t/run-2.S
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-ir %s > %t/run-1.ir
3+
// RUN: %target-build-swift -O -g -module-name foo -emit-ir %s > %t/run-2.ir
4+
// RUN: diff -u %t/run-1.ir %t/run-2.ir
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-silgen %s > %t/run-1.silgen
3+
// RUN: %target-build-swift -O -g -module-name foo -emit-silgen %s > %t/run-2.silgen
4+
// RUN: diff -u %t/run-1.silgen %t/run-2.silgen
5+
print("foo")

0 commit comments

Comments
 (0)