mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 07:19:50 +00:00
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:
parent
2d934ac110
commit
86f87dbe21
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user