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