Re: JIT compiling with LLVM v9.1 - Mailing list pgsql-hackers

From Andreas Karlsson
Subject Re: JIT compiling with LLVM v9.1
Date
Msg-id 353b583d-08a2-9097-2224-f2db093d44cf@proxel.se
Whole thread Raw
In response to Re: JIT compiling with LLVM v9.1  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On 02/15/2018 06:23 PM, Andres Freund wrote:
>> 2) When I build with --with-cassert I expect the assertions to be there,
>> both in the binaries and the bitcode. Is that just a bug or is there any
>> thought behind this?
> 
> Not sure what you mean by that. NDEBUG and cassert are independent
> mechanisms, no?

Yeah, I think I just managed to confuse myself there.

The actual issue is that --with-llvm changes if NDEBUG is set or not, 
which is quite surprising. I would not expect assertions to be disabled 
in the fronted code just because I compiled PostgreSQL with llvm.

Andreas


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: FOR EACH ROW triggers on partitioned tables
Next
From: Peter Geoghegan
Date:
Subject: Re: [HACKERS] MERGE SQL Statement for PG11