Skip to content

Commit 2594ad7

Browse files
committed
In pgrminclude, document requirement to use pgcompinclude, and sort
files so include removal is more predictable.
1 parent 23fe7a7 commit 2594ad7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/tools/pginclude/pgrminclude

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
:
22
# remove extra #include's
33

4+
# pgcompinclude must be run before and after pgrminclude. It must be
5+
# run before because we don't want include dependencies to leak into
6+
# the C program files, and after because removal of includes from headers
7+
# can cause new include unfulfilled dependencies.
8+
#
49
# Limitations: 2011-09-24
510
#
611
# Pgrminclude, when processing header files, can cause includes to be
@@ -115,8 +120,8 @@ compile_file() {
115120

116121
# Process include files first because they can affect the compilation
117122
# of *.c files.
118-
(find . \( -name .git -a -prune \) -o -type f -name '*.h' -print;
119-
find . \( -name .git -a -prune \) -o -type f -name '*.c' -print ) |
123+
(find . \( -name .git -a -prune \) -o -type f -name '*.h' -print | sort;
124+
find . \( -name .git -a -prune \) -o -type f -name '*.c' -print | sort) |
120125
grep -v '/postgres.h$' |
121126
grep -v '/postgres_fe.h$' |
122127
grep -v '/pg_config.h$' |

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy