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 1oB0AX-0002oK-6J for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 20:38:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oB0AW-0000Un-2H for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Jul 2022 20:38:12 +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 1oB0AV-0000Ue-Pm for pgsql-hackers@lists.postgresql.org; Mon, 11 Jul 2022 20:38:11 +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 1oB0AT-0001J8-K5 for pgsql-hackers@postgresql.org; Mon, 11 Jul 2022 20:38:11 +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 26BKc5tP1239477; Mon, 11 Jul 2022 16:38:05 -0400 From: Tom Lane To: Andres Freund cc: Robert Haas , Peter Eisentraut , David Rowley , pgsql-hackers Subject: Re: automatically generating node support functions In-reply-to: <20220711201755.x5hmdailt63z2xo2@awork3.anarazel.de> References: <3302658.1657288366@sss.pgh.pa.us> <3488143.1657310625@sss.pgh.pa.us> <11148777-fbe2-5188-195d-48f5083573c5@enterprisedb.com> <20220710214622.haiektrjzisob6rl@awork3.anarazel.de> <815831.1657494597@sss.pgh.pa.us> <45f508cb-e30b-c252-e081-4548deafa34c@enterprisedb.com> <1116889.1657553859@sss.pgh.pa.us> <1201553.1657562258@sss.pgh.pa.us> <1229446.1657569262@sss.pgh.pa.us> <20220711201755.x5hmdailt63z2xo2@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 11 Jul 2022 13:17:55 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1239475.1657571885.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 11 Jul 2022 16:38:05 -0400 Message-ID: <1239476.1657571885@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-07-11 15:54:22 -0400, Tom Lane wrote: >> We can't simply move the file list into gen_node_support.pl, because >> (a) the build system has to know about the dependencies involved > Meson has builtin support for tools like gen_node_support.pl reporting w= hich > files they've read and then to use those as dependencies. It'd not be a = lot of > effort to open-code that with make either. If you want to provide code for that, sure, but I don't know how to do it. >> (b) gen_node_support.pl wouldn't know what to do in VPATH situations. > We could easily add a --include-path argument or such. That'd be trivial= to > set for all of the build solutions. True. regards, tom lane