Skip to content

Commit 6ee1a77

Browse files
committed
For checking deterministic compilation, do an initial "warm-up" compilation for the clang module cache.
This is a workaround for rdar://problem/43442957 and rdar://problem/43439465.
1 parent 9a71a0b commit 6ee1a77

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/check-incremental

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ def main():
7474
if VERBOSE:
7575
print("Reference compilation of " + output_file + ":")
7676

77+
# As a workaround for rdar://problem/43442957 and rdar://problem/43439465
78+
# we have to "warm-up" the clang module cache. Without that in some cases
79+
# we end up with small differences in the debug info.
80+
compile_and_stat(new_args, output_file)
81+
7782
reference_md5, reference_time = compile_and_stat(new_args, output_file)
7883

7984
subprocess.check_call(["cp", output_file, output_file + ".ref.o"])

0 commit comments

Comments
 (0)