cdata.set('USE_LLVM', 1)
- cpp = meson.get_compiler('cpp')
+ cxx = meson.get_compiler('cpp')
llvm_binpath = llvm.get_variable(configtool: 'bindir')
# We need to repeat the test for C++ because gcc and clang prefer different
# format archetypes.
if llvm.found()
- attrib_error_args = cpp.get_supported_arguments('-Werror=format', '-Werror=ignored-attributes')
+ attrib_error_args = cxx.get_supported_arguments('-Werror=format', '-Werror=ignored-attributes')
foreach a : printf_attributes
- if cpp.compiles(testsrc.format(a),
- args: attrib_error_args, name: 'cppformat ' + a)
+ if cxx.compiles(testsrc.format(a),
+ args: attrib_error_args, name: 'cxxformat ' + a)
cdata.set('PG_CXX_PRINTF_ATTRIBUTE', a)
break
endif
cflags += cc.get_supported_arguments(common_functional_flags)
if llvm.found()
- cxxflags += cpp.get_supported_arguments(common_functional_flags)
+ cxxflags += cxx.get_supported_arguments(common_functional_flags)
endif
vectorize_cflags = cc.get_supported_arguments(['-ftree-vectorize'])
cflags_warn += cc.get_supported_arguments(common_warning_flags)
if llvm.found()
- cxxflags_warn += cpp.get_supported_arguments(common_warning_flags)
+ cxxflags_warn += cxx.get_supported_arguments(common_warning_flags)
endif
# A few places with imported code get a pass on -Wdeclaration-after-statement, remember
if cc.has_argument('-W' + w)
cflags_warn += '-Wno-' + w
endif
- if llvm.found() and cpp.has_argument('-W' + w)
+ if llvm.found() and cxx.has_argument('-W' + w)
cxxflags_warn += '-Wno-' + w
endif
endforeach
cflags_builtin = cc.get_supported_arguments(common_builtin_flags)
if llvm.found()
- cxxflags_builtin = cpp.get_supported_arguments(common_builtin_flags)
+ cxxflags_builtin = cxx.get_supported_arguments(common_builtin_flags)
endif
if llvm.found()
summary(
{
- 'C++ compiler': '@0@ @1@'.format(cpp.get_id(), cpp.version()),
+ 'C++ compiler': '@0@ @1@'.format(cxx.get_id(), cxx.version()),
},
section: 'Compiler',
)
backend_targets += postgres
pg_mod_c_args = cflags_mod
-pg_mod_cpp_args = cxxflags_mod
+pg_mod_cxx_args = cxxflags_mod
pg_mod_link_args = ldflags_sl + ldflags_mod
pg_mod_link_depend = []
# normal extension modules
pg_mod_args = default_mod_args + {
'dependencies': [backend_mod_code],
- 'cpp_args': pg_mod_cpp_args,
+ 'cpp_args': pg_mod_cxx_args,
'link_depends': pg_mod_link_depend,
}