Re: Templates
От | Tom Lane |
---|---|
Тема | Re: Templates |
Дата | |
Msg-id | 22170.963349784@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Templates (Peter Eisentraut <peter_e@gmx.net>) |
Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.net> writes: > Tom Lane writes: >>>> So the compiler information must disappear from the template files. >> >> Not exactly. We do need to be able to decide whether we are using >> gcc or vendor cc in order to pick the right switches. > I'll rephrase that: The name of the compiler needs to disappear from the > template file. We'd still have a separate file for GCC vs vendor with the > different CFLAGS, etc., but we wouldn't force CC= something. Agreed. >> One possible way of doing that is to merge the "cc" and "gcc" >> templates and have if-tests in the templates instead. For example the >> hpux template might look like > Or that, but I'm not sure if that enhances readibility. If you're doing the legwork I guess you get to choose ;-) ... but I like the idea of combining the gcc and vendor-cc templates for a platform. Usually there's a great deal of commonality, so having two templates just means two files to edit (or forget to edit). regards, tom lane
В списке pgsql-hackers по дате отправления: