// RUN: %target-build-swift -module-name Foundation -parse-as-library %S/../../stdlib/public/Darwin/Foundation/*.swift `dirname %t`/../../../stdlib/public/Darwin/Foundation/8/*.swift -emit-module-path %t.1.swiftmodule // RUN: %target-build-swift -module-name Foundation -parse-as-library %S/../../stdlib/public/Darwin/Foundation/*.swift `dirname %t`/../../../stdlib/public/Darwin/Foundation/8/*.swift -emit-module-path %t.2.swiftmodule // RUN: diff <(llvm-bcanalyzer -dump %t.1.swiftmodule | sed -e 's/\.[0-9]\.swiftmodule/\.x\.swiftmodule/g') <(llvm-bcanalyzer -dump %t.2.swiftmodule | sed -e 's/\.[0-9]\.swiftmodule/\.x\.swiftmodule/g') // REQUIRES: sr4342 // REQUIRES: objc_interop // REQUIRES: PTRSIZE=64 // Compiling the same set of files twice, without modifying them (and without // generating inlineable SIL) should produce the same swiftmodule. We don't // promise more than that at this time... // This test (and Foundation-determinism-wmo.swift) are known to be rather // brittle, since they refer directly to sources in stdlib/public/ as well as // gyb outputs in the build folder, and assume the Apple Foundation overlay can // be built with a relatively simple command line. If it ever breaks, feel free // to just disable it and file an SR.