mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Only re-generate an object file if the llvm IR (after IRGen) changed. The check is done based on a MD5 hash of the llvm IR which is stored in a special section in the object file. This reduces compilation time for multi-threaded whole module compilation if only a small number of files are changed. The incremental compilation also works for compilations with a single output file. In this case it's all-or-nothing.
5 lines
49 B
Swift
5 lines
49 B
Swift
|
|
public func test_func2() {
|
|
print("simple2")
|
|
}
|