Disable LLVM bitcode generation with pgxs.mk framework.

From: Xing Guo <higuoxing(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Disable LLVM bitcode generation with pgxs.mk framework.
Date: 2024-03-12 13:38:23
Message-ID: CACpMh+CPDPLbvXPsB1-4N-TsNHtg_o4XR_CGFpYqeBfyt0U8CA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers,

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)
```

Best Regards,
Xing

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Aleksander Alekseev 2024-03-12 13:40:59 Re: Commitfest Manager for March
Previous Message Robert Haas 2024-03-12 13:33:23 Re: [PATCH] LockAcquireExtended improvement