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 1ogKyC-0001Hq-1r for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Oct 2022 07:07:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ogKyA-0005fB-Uj for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Oct 2022 07:06:58 +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 1ogKyA-0005ev-L6 for pgsql-hackers@lists.postgresql.org; Thu, 06 Oct 2022 07:06:58 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogKy2-0001P4-0g for pgsql-hackers@postgresql.org; Thu, 06 Oct 2022 07:06:58 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id F3C033200805; Thu, 6 Oct 2022 03:06:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 06 Oct 2022 03:06:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1665040006; x=1665126406; bh=G f19fwIQbaVyndEE57xWWUVl1hmbGJpc8aBFnz3KZas=; b=SBfBXk2oJ7Q5TI4mx D7lFUB2E2p/k4rFpV7PPvoLWgbfQRWLGu21O1wYlKt6aAETNplOAvUAw0bOcrRku 71JQVXSuOjx8vWKjrahZZPO7Np8mQNUrcMaXz180lPKurEzYZnhAANI61uy+oabu C1QJITO0+/Nw5SNZmj1MJ9ggqqQW98ZZ0oYr9GwMvIRdkW+mZQM8WdU4cPqgSkU2 hLrlPIRkiBYDuLJ4umb38YQOnJPg5WKAtnEKMBd6Xn2Ast+EUB9TG8GK3ZnL1tJ1 Hsndz1JYWajPfNzt63xckmugMCcKXtfwBN0xJQMmetyAnRBjtAdewGlf9dnKpjpk /stqQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeigedguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeefjeegheetuefhveev udelueeftdejteeiffetvdduhfdtieefgfeutedtveeggfenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Oct 2022 03:06:44 -0400 (EDT) Message-ID: <28e95b5f-9162-de57-c4da-a85b909bb9b0@enterprisedb.com> Date: Thu, 6 Oct 2022 09:06:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: meson: Add support for building with precompiled headers Content-Language: en-US To: Andres Freund , pgsql-hackers@postgresql.org, Thomas Munro , Justin Pryzby , Michael Paquier References: <20221005190829.lda7ttalh4mzrvf4@awork3.anarazel.de> From: Peter Eisentraut In-Reply-To: <20221005190829.lda7ttalh4mzrvf4@awork3.anarazel.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 05.10.22 21:08, Andres Freund wrote: > This is a patch split off from the initial meson thread [1] as it's > functionally largely independent (as suggested in [2]). > > Using precompiled headers substantially speeds up building for windows, due to > the vast amount of headers included via windows.h. A cross build from > linux targetting mingw goes from These patches look ok to me. I can't really comment on the Windows details, but it sounds all reasonable. Small issue: +override CFLAGS += -DFD_SETSIZE=1024 (and similar) should be CPPFLAGS.