pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix LLVM related headers to compile standalone (to fix cplusplus
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix LLVM related headers to compile standalone (to fix cplusplus
@ 2019-01-29 02:16 Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2019-01-29 02:16 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix LLVM related headers to compile standalone (to fix cpluspluscheck).

Previously llvmjit.h #error'ed when USE_LLVM was not defined, to
prevent it from being included from code not having #ifdef USE_LLVM
guards - but that's not actually that useful after, during the
development of JIT support, LLVM related code was moved into a
separately compiled .so.  Having that #error means cpluspluscheck
doesn't work when llvm support isn't enabled, which isn't great.

Similarly add USE_LLVM guards to llvmjit_emit.h, and additionally make
sure it compiles standalone.

Per complaint from Tom Lane.

Author: Andres Freund
Discussion: https://postgr.es/m/19808.1548692361@sss.pgh.pa.us
Backpatch: 11, where JIT support was added

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/da05eb51debd5d4b0284bcafa728244183c303ae

Modified Files
--------------
src/include/jit/llvmjit.h      | 9 ++++++---
src/include/jit/llvmjit_emit.h | 9 +++++++++
2 files changed, 15 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix LLVM related headers to compile standalone (to fix cplusplus
@ 2019-01-29 02:16 Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2019-01-29 02:16 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix LLVM related headers to compile standalone (to fix cpluspluscheck).

Previously llvmjit.h #error'ed when USE_LLVM was not defined, to
prevent it from being included from code not having #ifdef USE_LLVM
guards - but that's not actually that useful after, during the
development of JIT support, LLVM related code was moved into a
separately compiled .so.  Having that #error means cpluspluscheck
doesn't work when llvm support isn't enabled, which isn't great.

Similarly add USE_LLVM guards to llvmjit_emit.h, and additionally make
sure it compiles standalone.

Per complaint from Tom Lane.

Author: Andres Freund
Discussion: https://postgr.es/m/19808.1548692361@sss.pgh.pa.us
Backpatch: 11, where JIT support was added

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6a5c0bb6abbfa987ac065789b50240e485b75725

Modified Files
--------------
src/include/jit/llvmjit.h      | 9 ++++++---
src/include/jit/llvmjit_emit.h | 9 +++++++++
2 files changed, 15 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-01-29 02:16 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-29 02:16 pgsql: Fix LLVM related headers to compile standalone (to fix cplusplus Andres Freund <andres@anarazel.de>
2019-01-29 02:16 pgsql: Fix LLVM related headers to compile standalone (to fix cplusplus Andres Freund <andres@anarazel.de>

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