[CMake][compiler-rt] Use COMPILE_OPTIONS and LINK_OPTIONS
authorPetr Hosek <phosek@google.com>
Wed, 30 Mar 2022 17:33:40 +0000 (10:33 -0700)
committerPetr Hosek <phosek@google.com>
Wed, 27 Apr 2022 06:19:16 +0000 (23:19 -0700)
commitd47565ed62a383175ebb5cb5733f169d72715253
tree4b046d39f076454d074bc3f9472e8f58293d07ce
parente1567e771b8943861f5c886773b19ebfbf395ac5
[CMake][compiler-rt] Use COMPILE_OPTIONS and LINK_OPTIONS

This avoids the need for string-ification and lets CMake deduplicate
potentially duplicate flags.

Differential Revision: https://reviews.llvm.org/D122750
compiler-rt/cmake/Modules/CompilerRTUtils.cmake