From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Andres Freund <andres(at)anarazel(dot)de> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org, Michael Paquier <michael(at)paquier(dot)xyz>, mikael(dot)kjellstrom(at)gmail(dot)com |
Subject: | Re: Mixing CC and a different CLANG seems like a bad idea |
Date: | 2021-11-18 21:57:52 |
Message-ID: | 2978401.1637272672@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Andres Freund <andres(at)anarazel(dot)de> writes:
> On 2021-11-18 13:39:04 -0500, Tom Lane wrote:
>> More, I think (though this ought to be documented in a comment) that
>> the policy is to not bother turning on extra -W options in the bitcode
>> switches, on the grounds that warning once in the main build is enough.
>> I follow that idea --- but what we missed is that we still need to
>> turn *off* the warnings we're actively disabling. I shall go do that,
>> if no objections.
> Thanks for doing that, that does sounds like a good way, at least for now.
Cool, thanks for confirming.
For the archives' sake: I thought originally that this was triggered
by having CC different from CLANG, and even wrote that in the commit
message; but I was mistaken. I was misled by the fact that sidewinder
is the only animal still reporting the compound-token-split-by-macro
warnings, and jumped to the conclusion that its unusual configuration
was the cause. But actually that't not it, because the flags we
feed to CLANG are *not* dependent on what CC will take. I now think
the actual uniqueness is that sidewinder is the only animal that is
using clang >= 12 and has --with-llvm enabled.
>> (BTW, does meson have any comparable optimization?
>> If it doesn't, I bet that is going to be a problem.)
> Yes - imo in a nicer, more reliable way. It caches most test results, but with
> the complete input, including the commandline (i.e. compiler flags) as the
> cache key. So no more errors about compile flags changing...
Nice!
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2021-11-18 22:15:58 | Re: LogwrtResult contended spinlock |
Previous Message | Tom Lane | 2021-11-18 21:49:32 | Re: xlog.c: removing ReadRecPtr and EndRecPtr |