Re: Disable LLVM bitcode generation with pgxs.mk framework.

From: Xing Guo <higuoxing(at)gmail(dot)com>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Disable LLVM bitcode generation with pgxs.mk framework.
Date: 2024-03-13 07:18:33
Message-ID: CACpMh+BAM9j6ML=eaS3i7uW=zOzkzOuwv=+fHiMhstKhCt=wvQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Wed, Mar 13, 2024 at 2:45 PM Peter Eisentraut <peter(at)eisentraut(dot)org> wrote:
>
> On 12.03.24 14:38, Xing Guo wrote:
> > When the PostgreSQL server is configured with --with-llvm, the pgxs.mk
> > framework will generate LLVM bitcode for extensions automatically.
> > Sometimes, I don't want to generate bitcode for some extensions. I can
> > turn off this feature by specifying with_llvm=0 in the make command.
> >
> > ```
> > make with_llvm=0
> > ```
> >
> > Would it be possible to add a new switch in the pgxs.mk framework to
> > allow users to disable this feature? E.g., the Makefile looks like:
> >
> > ```
> > WITH_LLVM=no
> > PG_CONFIG = pg_config
> > PGXS := $(shell $(PG_CONFIG) --pgxs)
> > ```
>
> Can't you just put the very same with_llvm=0 into the makefile?

Ah, you're right. I can set it by overriding that variable.

```
override with_llvm=no
```

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bertrand Drouvot 2024-03-13 07:21:18 Re: Introduce XID age and inactive timeout based replication slot invalidation
Previous Message shveta malik 2024-03-13 07:15:06 Re: Introduce XID age and inactive timeout based replication slot invalidation