diff options
author | Thomas Munro <tmunro@postgresql.org> | 2022-10-19 22:18:26 +1300 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2022-10-19 22:18:26 +1300 |
commit | c2ae01f695b1605bc5e3908ff52b24fce6636caa (patch) | |
tree | 342e8508e5cd67d6fc06cce053eac761f27f9aad /configure.ac | |
parent | df3737a651f40a398c14348b0482e97031e7a7d4 (diff) | |
download | postgresql-c2ae01f695b1605bc5e3908ff52b24fce6636caa.tar.gz |
Track LLVM 15 changes.
Per https://llvm.org/docs/OpaquePointers.html, support for non-opaque
pointers still exists and we can request that on our context. We have
until LLVM 16 to move to opaque pointers, a much larger change.
Back-patch to 11, where LLVM support arrived.
Author: Thomas Munro <thomas.munro@gmail.com>
Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CAMHz58Sf_xncdyqsekoVsNeKcruKootLtVH6cYXVhhUR1oKPCg%40mail.gmail.com
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index f146c8301a..d80cdb5ca2 100644 --- a/configure.ac +++ b/configure.ac @@ -627,6 +627,9 @@ if test "$with_llvm" = yes ; then PGAC_PROG_VARCC_VARFLAGS_OPT(CLANG, BITCODE_CFLAGS, [-fexcess-precision=standard]) PGAC_PROG_VARCXX_VARFLAGS_OPT(CLANGXX, BITCODE_CXXFLAGS, [-fexcess-precision=standard]) + PGAC_PROG_VARCC_VARFLAGS_OPT(CLANG, BITCODE_CFLAGS, [-Xclang -no-opaque-pointers]) + PGAC_PROG_VARCXX_VARFLAGS_OPT(CLANGXX, BITCODE_CXXFLAGS, [-Xclang -no-opaque-pointers]) + NOT_THE_CFLAGS="" PGAC_PROG_VARCC_VARFLAGS_OPT(CLANG, NOT_THE_CFLAGS, [-Wunused-command-line-argument]) if test -n "$NOT_THE_CFLAGS"; then |