meson/rtti: Using get_argument_syntax to check msvc compatible compiler

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17055>
This commit is contained in:
Yonggang Luo 2022-05-19 18:27:44 +08:00 committed by Marge Bot
parent 2d934ac110
commit 86f87dbe21

View File

@ -1782,7 +1782,7 @@ if with_llvm
error('Lavapipe requires LLVM draw support.')
endif
if cc.get_id() != 'msvc'
if cc.get_argument_syntax() != 'msvc'
# LLVM can be built without rtti, turning off rtti changes the ABI of C++
# programs, so we need to build all C++ code in mesa without rtti as well to
# ensure that linking works. Note that MSVC does handle mismatching RTTI