mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
meson: Add basic PGXS compatibility
Generate a Makefile.global that's complete enough for PGXS to work for some extensions. It is likely that this compatibility layer will not suffice for every extension and not all platforms - we can expand it over time. This allows extensions to use a single buildsystem across all the supported postgres versions. Once all supported PG versions support meson, we can remove the compatibility layer. Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com> Discussion: https://postgr.es/m/20221005200710.luvw5evhwf6clig6@awork3.anarazel.de
This commit is contained in:
@ -337,9 +337,6 @@ program_zstd = find_program(get_option('ZSTD'), native: true, required: false)
|
||||
dtrace = find_program(get_option('DTRACE'), native: true, required: get_option('dtrace'))
|
||||
missing = find_program('config/missing', native: true)
|
||||
|
||||
# used by PGXS
|
||||
install_sh = find_program('config/install-sh', native: true)
|
||||
|
||||
bison_flags = []
|
||||
if bison.found()
|
||||
bison_version_c = run_command(bison, '--version', check: true)
|
||||
@ -1741,11 +1738,10 @@ endif
|
||||
|
||||
# A few places with imported code get a pass on -Wdeclaration-after-statement, remember
|
||||
# the result for them
|
||||
cflags_no_decl_after_statement = []
|
||||
if cc.has_argument('-Wdeclaration-after-statement')
|
||||
cflags_warn += '-Wdeclaration-after-statement'
|
||||
using_declaration_after_statement_warning = true
|
||||
else
|
||||
using_declaration_after_statement_warning = false
|
||||
cflags_no_decl_after_statement += '-Wno-declaration-after-statement'
|
||||
endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user