[compiler-rt] Quote multiple warning flags in check_cxx_compiler_flag invocation
authorSergei Barannikov <barannikov88@gmail.com>
Sat, 1 Apr 2023 11:23:55 +0000 (14:23 +0300)
committerSergei Barannikov <barannikov88@gmail.com>
Sat, 1 Apr 2023 12:30:56 +0000 (15:30 +0300)
commit88c744e7dfaa9ce67dc2b30dea7713e054399d17
treeb20561648c057e48c05e306b0505743c502e8c80
parent07c5e175f64ddacc550e535e0697fd31919843ff
[compiler-rt] Quote multiple warning flags in check_cxx_compiler_flag invocation

Without this all checks fail because CMake passes the flags
like this:
`... -nodefaultlibs   -D-Warray-bounds -Werror -std=c++17 ...`
Note the `-D` before the `-W`.

Reviewed By: ahatanak

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