meson/clover: Getting clover can be built with no-rtti llvm in mingw
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:
@@ -1782,10 +1782,10 @@ if with_llvm
|
|||||||
error('Lavapipe requires LLVM draw support.')
|
error('Lavapipe requires LLVM draw support.')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if cc.get_argument_syntax() != 'msvc'
|
if host_machine.system() != 'windows'
|
||||||
# LLVM can be built without rtti, turning off rtti changes the ABI of C++
|
# 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
|
# 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
|
# ensure that linking works. Note that Win32 compilers does handle mismatching RTTI
|
||||||
# without issues, so only apply this for other compilers.
|
# without issues, so only apply this for other compilers.
|
||||||
if dep_llvm.type_name() == 'internal'
|
if dep_llvm.type_name() == 'internal'
|
||||||
_llvm_rtti = subproject('llvm').get_variable('has_rtti', true)
|
_llvm_rtti = subproject('llvm').get_variable('has_rtti', true)
|
||||||
@@ -1800,7 +1800,9 @@ if with_llvm
|
|||||||
error('LLVM was built without RTTI, so Mesa must also disable RTTI. Use an LLVM built with LLVM_ENABLE_RTTI or add cpp_rtti=false.')
|
error('LLVM was built without RTTI, so Mesa must also disable RTTI. Use an LLVM built with LLVM_ENABLE_RTTI or add cpp_rtti=false.')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
else
|
endif
|
||||||
|
|
||||||
|
if cc.get_argument_syntax() == 'msvc'
|
||||||
# Suppress "/DELAYLOAD:ole32.dll/shell32.dll ignored" warnings that LLVM adds
|
# Suppress "/DELAYLOAD:ole32.dll/shell32.dll ignored" warnings that LLVM adds
|
||||||
add_project_link_arguments(
|
add_project_link_arguments(
|
||||||
'/ignore:4199',
|
'/ignore:4199',
|
||||||
|
Reference in New Issue
Block a user