Skip to content

Commit da7f08b

Browse files
authored
Merge pull request swiftlang#9068 from practicalswift/reproducible-builds-bitcode
2 parents 9a8ba24 + ed401b4 commit da7f08b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: rm -rf %t && mkdir -p %t
2+
// NOTE: We need to re-use the output filename ("-o run.bc") between the two
3+
// runs since the LLVM BC file contains the filename specified:
4+
// <UnknownCode16 ... /> record string = 'run.bc'
5+
// RUN: %target-build-swift -O -g -module-name foo -emit-bc %s -o %t/run.bc
6+
// RUN: mv %t/run.bc %t/run-1.bc
7+
// RUN: %target-build-swift -O -g -module-name foo -emit-bc %s -o %t/run.bc
8+
// RUN: mv %t/run.bc %t/run-2.bc
9+
// RUN: cmp %t/run-1.bc %t/run-2.bc
10+
print("foo")

0 commit comments

Comments
 (0)