[CMake] Fix LLVM build non-determinism on RHEL
authorAmy Kwan <amy.kwan1@ibm.com>
Fri, 22 Nov 2019 05:06:33 +0000 (23:06 -0600)
committerAmy Kwan <amy.kwan1@ibm.com>
Fri, 22 Nov 2019 05:18:11 +0000 (23:18 -0600)
commitc84c62c50aa8524dbf96217c337f3b5ee4139000
tree5b432f43c2e51e669a6c9b8f23f92e61ddf05ebe
parent29f6f9b2b2bfecccf903738e2f5a0cd0a70fce31
[CMake] Fix LLVM build non-determinism on RHEL

On RHEL, the OS tooling (ar, ranlib) is not deterministic by default.
Therefore, we cannot get bit-for-bit identical builds.

The goal of this patch is that it adds the flags required to force determinism.

Differential Revision: https://reviews.llvm.org/D64817
llvm/cmake/modules/HandleLLVMOptions.cmake