Re: Windows vs C99 (was Re: C99 compliance for src/port/snprintf.c)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Windows vs C99 (was Re: C99 compliance for src/port/snprintf.c)
Дата
Msg-id 15587.1535127034@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Windows vs C99 (was Re: C99 compliance for src/port/snprintf.c)  (Andres Freund <andres@anarazel.de>)
Ответы Re: Windows vs C99 (was Re: C99 compliance for src/port/snprintf.c)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Finnerty, Jim"
Дата:
Сообщение: Re: Removing useless DISTINCT clauses
Следующее
От: Tom Lane
Дата:
Сообщение: Re: remove ATTRIBUTE_FIXED_PART_SIZE