Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogAu3-0000xI-QT for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Oct 2022 20:22:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ogAu2-0002MJ-NQ for pgsql-hackers@arkaria.postgresql.org; Wed, 05 Oct 2022 20:22:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogAu2-0002Jh-E0 for pgsql-hackers@lists.postgresql.org; Wed, 05 Oct 2022 20:22:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogAu0-00022C-BM for pgsql-hackers@postgresql.org; Wed, 05 Oct 2022 20:22:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 295KLtVP2551679; Wed, 5 Oct 2022 16:21:55 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org, Thomas Munro , Justin Pryzby , Michael Paquier , Peter Eisentraut Subject: Re: meson: Add support for building with precompiled headers In-reply-to: <20221005201742.wsvfbymo5yhlrzbl@awork3.anarazel.de> References: <20221005190829.lda7ttalh4mzrvf4@awork3.anarazel.de> <2550386.1665000554@sss.pgh.pa.us> <20221005201742.wsvfbymo5yhlrzbl@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 05 Oct 2022 13:17:42 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2551677.1665001315.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 05 Oct 2022 16:21:55 -0400 Message-ID: <2551678.1665001315@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2022-10-05 16:09:14 -0400, Tom Lane wrote: >> Color me confused, but how does it work to #define that from the comman= d >> line if it can't be overridden from within the program? > If specified on the commandline it's also used when generating the preco= mpiled > header - of course that's not possible when it's just #define'd in some = .c > file. Ah, so there's a separate cache of precompiled headers for each set of compiler command-line arguments? Got it. regards, tom lane