[compiler-rt] Quote multiple warning flags in check_cxx_compiler_flag invocation
authorSergei Barannikov <barannikov88@gmail.com>
Sun, 26 Mar 2023 16:25:16 +0000 (19:25 +0300)
committerSergei Barannikov <barannikov88@gmail.com>
Wed, 29 Mar 2023 04:22:04 +0000 (07:22 +0300)
commite4918d43763e8bdcdf9ad27f4eb536bf9aa4e3cf
treed8a813900bc7a6cc05c0181de7640dac287ab472
parent6e4f870a21e344fdcd61fe613b0aeeafb8a84ed2
[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