From 86f87dbe2172f8fb529ca28a951d1af5f727ecd1 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Thu, 19 May 2022 18:27:44 +0800 Subject: [PATCH] meson/rtti: Using get_argument_syntax to check msvc compatible compiler Signed-off-by: Yonggang Luo Acked-by: Dylan Baker Part-of: --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index a7958e43545..44028f07a8a 100644 --- a/meson.build +++ b/meson.build @@ -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