[CMake][compiler-rt][RISCV] Support RISC-V cross-compilation
authorLuís Marques <luismarques@lowrisc.org>
Sun, 31 Jan 2021 23:51:38 +0000 (23:51 +0000)
committerLuís Marques <luismarques@lowrisc.org>
Sun, 31 Jan 2021 23:52:57 +0000 (23:52 +0000)
commit3203c968424193a519d1b52739047748038bb074
treea8f1584f8057ece3920a1dbc0117cbdad1f15926
parent8f670d5b6d8f39bf9bf1d142dacef3afaed6d70b
[CMake][compiler-rt][RISCV] Support RISC-V cross-compilation

This seems to be a safe way to ensure that the Compiler-RT test compiler
flags are properly set in all cross-compilation scenarios. Without this
when `BUILTINS_TEST_TARGET_CFLAGS` is set in
`compiler-rt/test/builtins/CMakeLists.txt` the other flags are cleared.

Differential Revision: https://reviews.llvm.org/D92124
compiler-rt/cmake/config-ix.cmake