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

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Xing Guo <higuoxing(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Disable LLVM bitcode generation with pgxs.mk framework.
Date: 2024-03-13 06:45:26
Message-ID: 65d00eec-3e8e-41ad-88de-f1b1c32f9d9d@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sutou Kouhei 2024-03-13 07:12:00 Re: meson: Specify -Wformat as a common warning flag for extensions
Previous Message jian he 2024-03-13 06:44:12 Re: MERGE ... RETURNING