Mesa (main): meson/rtti: Using get_argument_syntax to check msvc compatible compiler
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 16 21:16:59 UTC 2022
Module: Mesa
Branch: main
Commit: 86f87dbe2172f8fb529ca28a951d1af5f727ecd1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=86f87dbe2172f8fb529ca28a951d1af5f727ecd1
Author: Yonggang Luo <luoyonggang at gmail.com>
Date: Thu May 19 18:27:44 2022 +0800
meson/rtti: Using get_argument_syntax to check msvc compatible compiler
Signed-off-by: Yonggang Luo <luoyonggang at gmail.com>
Acked-by: Dylan Baker <dylan at pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17055>
---
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
More information about the mesa-commit
mailing list