Re: Custom options for building extensions with --with--llvm

From: Konstantin Knizhnik <k(dot)knizhnik(at)postgrespro(dot)ru>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Custom options for building extensions with --with--llvm
Date: 2020-09-24 20:10:19
Message-ID: 64d85667-e113-9702-123f-176d5b23d9b2@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 24.09.2020 21:37, Andres Freund wrote:
> Hi,
>
> On 2020-09-24 19:15:22 +0300, Konstantin Knizhnik wrote:
>> In my extension I want to define some custom options for compiler.
>> I do it in the following way:
>>
>> ifdef USE_DISK
>> CUSTOM_COPT += -DIMCS_DISK_SUPPORT
>> endif
> Why aren't you adding it to PG_CPPFLAGS? That should work, and I think
> that's what several contrib modules are using.

Thank you.
PG_CPPFLAGS works correctly.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2020-09-24 20:31:55 Re: Inconsistent Japanese name order in v13 contributors list
Previous Message Robert Haas 2020-09-24 19:46:14 Re: fixing old_snapshot_threshold's time->xid mapping