Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ftEfg-0000Vk-GS for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Aug 2018 16:10:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ftEfe-0007rQ-VA for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Aug 2018 16:10:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ftEfe-0007rC-OG for pgsql-hackers@lists.postgresql.org; Fri, 24 Aug 2018 16:10:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ftEfc-0002rU-78 for pgsql-hackers@lists.postgresql.org; Fri, 24 Aug 2018 16:10:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7OGAYbf015588; Fri, 24 Aug 2018 12:10:34 -0400 From: Tom Lane To: Andres Freund cc: Andrew Dunstan , Sandeep Thakkar , Peter Eisentraut , "Joshua D. Drake" , Thomas Munro , David Steele , PostgreSQL Hackers , Craig Ringer Subject: Re: Windows vs C99 (was Re: C99 compliance for src/port/snprintf.c) In-reply-to: <20180824154623.i32aryx4bzfa4gxu@alap3.anarazel.de> References: <1d5946a3-aa85-a3ec-c8aa-b3e9b66dd5d9@commandprompt.com> <20180821204936.tqdmjolkoo2sv5og@alap3.anarazel.de> <303572b3-89a5-6177-d46a-e23b2b4d6caa@2ndQuadrant.com> <20180821232952.ixj6kgccoqcjp5gf@alap3.anarazel.de> <20180822120211.prl6uxspai4lahfs@alap3.anarazel.de> <20180823000905.fjthfohmczss4fiw@alap3.anarazel.de> <20180823013134.3h4j62eeiaibpgvo@alap3.anarazel.de> <20180824014434.qourppnik7bmsib6@alap3.anarazel.de> <20180824154623.i32aryx4bzfa4gxu@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Fri, 24 Aug 2018 08:46:23 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15586.1535127034.1@sss.pgh.pa.us> Date: Fri, 24 Aug 2018 12:10:34 -0400 Message-ID: <15587.1535127034@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > I'd like to change it so it doesn't enforce C89 compliance across the > board, but instead enforces the relevant standard. For that I'd need to > change CFLAGS per-branch in the buildfarm. Is that possible already? Do > I need two different config files? I just did that on dromedary, with a stanza like this at the bottom: if ($branch eq 'HEAD' or $branch ge 'REL_12') { $conf{config_env}->{CC} = 'ccache gcc -std=c99'; } else { $conf{config_env}->{CC} = 'ccache gcc -ansi'; } regards, tom lane