Re: pgsql/src/backend/parser (Makefile)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql/src/backend/parser (Makefile)
Дата
Msg-id 27708.963806484@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql/src/backend/parser (Makefile)  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-committers
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane writes:
>> There might also be a dependency issue, ie does make realize that
>> updating backend/parser/parse.h means it has to recompile files
>> that are shown as depending on include/parser/parse.h.

> It seems to be a stat() vs lstat() issue; the symlink is automatically
> up-to-date because when make inspects it it will find the timestamp of the
> underlying file. So the answer to your question seems to be yes.

Your example misses the point though, because the symlink can be seen to
be out of date when Make starts up.  If make runs a rule to update
backend/parser/parse.h, will it know *in the same run* that this implies
running rules that are dependent on include/parser/parse.h, or will it
already have decided it does not have to run those rules?  Seems
particularly dangerous in a parallel-make situation.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql/contrib/statmath (Makefile README.statmath statmath.c statmath.sql.in)
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql/src/include (c.h)