meson: llvm: Use llvm-config's --cxxflags when building llvmjit
Otherwise we don't use LLVM's flags when building llvmjit_wrap.cpp and llvmjit_inline.cpp. That can cause compile time failures if the C++ compiler doesn't default to a new enough C++ standards version and link time failures due to ABI influencing flags like -fno-rtti.
This commit is contained in:
parent
4a79fd1a75
commit
908e17151b
@ -24,6 +24,7 @@ llvmjit = shared_module('llvmjit',
|
||||
llvmjit_sources,
|
||||
kwargs: pg_mod_args + {
|
||||
'dependencies': pg_mod_args['dependencies'] + [llvm],
|
||||
'cpp_args': pg_mod_args['cpp_args'] + llvm.get_variable(configtool: 'cxxflags').split(),
|
||||
}
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user