Re: pg_bsd_indent compiles bytecode - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_bsd_indent compiles bytecode
Date
Msg-id 152549.1593292377@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_bsd_indent compiles bytecode  (Bruce Momjian <bruce@momjian.us>)
Responses Re: pg_bsd_indent compiles bytecode
Re: pg_bsd_indent compiles bytecode
List pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> On Tue, Jun 23, 2020 at 05:56:10PM -0400, Alvaro Herrera wrote:
>> I just noticed that when you compile pg_bsd_indent with a PG tree that
>> has --enable-jit (or something around that), then it compiles the source
>> files into bytecode.
>> Obviously this is not harmful since these files don't get installed, but
>> I wonder if our compiles aren't being excessively generous.

> Are you saying pg_bsd_indent indents the JIT output files?  I assumed
> people only ran pg_bsd_indent on dist-clean trees.

I think what he means is that when pg_bsd_indent absorbs the CFLAGS
settings that PG uses (because it uses the pgxs build infrastructure),
it ends up also building .bc files.

I wouldn't care about this particularly for pg_bsd_indent itself,
but it suggests that we're probably building .bc files for client-side
files, which seems like a substantial waste of time.  Maybe we need
different CFLAGS for client and server?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_bsd_indent compiles bytecode
Next
From: Ranier Vilela
Date:
Subject: Re: Fwd: PostgreSQL: WolfSSL support