pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Postpone LLVM-related uses of AC_CHECK_DECLS. 2+ messages / 1 participants [nested] [flat]
* pgsql: Postpone LLVM-related uses of AC_CHECK_DECLS. @ 2018-11-19 17:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2018-11-19 17:43 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Postpone LLVM-related uses of AC_CHECK_DECLS. Calling AC_CHECK_DECLS before we've finished setting up the compiler's CFLAGS seems like a pretty risky proposition, especially now that the first use of that macro will result in a test to see whether the compiler gives warning or error for undeclared built-in functions. That answer could very easily get changed later than where PGAC_LLVM_SUPPORT is called; furthermore, it's hardly unlikely that flags such as -D_GNU_SOURCE could change visibility of declarations. Hence, be a little less cavalier about where to do LLVM-related tests. This results in v11 and HEAD doing the warning-or-error check at the same place in the script as older branches are doing it, which seems like a good thing. Per further thought about commits 0b59b0e8b and 16fbac39f. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/640a4ba052c2dd7aaf600ca13b6d3afca60adc05 Modified Files -------------- config/llvm.m4 | 31 +++-- configure | 406 +++++++++++++++++++++++++++++---------------------------- configure.in | 4 + 3 files changed, 230 insertions(+), 211 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Postpone LLVM-related uses of AC_CHECK_DECLS. @ 2018-11-19 17:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2018-11-19 17:43 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Postpone LLVM-related uses of AC_CHECK_DECLS. Calling AC_CHECK_DECLS before we've finished setting up the compiler's CFLAGS seems like a pretty risky proposition, especially now that the first use of that macro will result in a test to see whether the compiler gives warning or error for undeclared built-in functions. That answer could very easily get changed later than where PGAC_LLVM_SUPPORT is called; furthermore, it's hardly unlikely that flags such as -D_GNU_SOURCE could change visibility of declarations. Hence, be a little less cavalier about where to do LLVM-related tests. This results in v11 and HEAD doing the warning-or-error check at the same place in the script as older branches are doing it, which seems like a good thing. Per further thought about commits 0b59b0e8b and 16fbac39f. Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/923f9c2def111e65a83f65d7caf75efb772314fc Modified Files -------------- config/llvm.m4 | 31 +++-- configure | 406 +++++++++++++++++++++++++++++---------------------------- configure.in | 4 + 3 files changed, 230 insertions(+), 211 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-11-19 17:43 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-11-19 17:43 pgsql: Postpone LLVM-related uses of AC_CHECK_DECLS. Tom Lane <tgl@sss.pgh.pa.us> 2018-11-19 17:43 pgsql: Postpone LLVM-related uses of AC_CHECK_DECLS. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox