Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4084681

Browse files
committed
Improve pginclude compile flags.
1 parent8230fbf commit4084681

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

‎src/tools/pginclude/pgcompinclude

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:
22
# report which #include files can not compile on their own
33
# takes -v option to display compile failure message and line numbers
4-
# $PostgreSQL: pgsql/src/tools/pginclude/pgcompinclude,v 1.6 2006/07/1102:01:24 momjian Exp $
4+
# $PostgreSQL: pgsql/src/tools/pginclude/pgcompinclude,v 1.7 2006/07/1120:12:29 momjian Exp $
55

66
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a" 0 1 2 3 15
77
find . \( -name CVS -a -prune \) -o -name '*.h' -type f -print | while read FILE
@@ -13,8 +13,10 @@ do
1313
echo "void include_test() {" >>/tmp/$$.c
1414
pgdefine "$FILE" >>/tmp/$$.c
1515
echo "}" >>/tmp/$$.c
16-
cc $CFLAGS -fsyntax-only -Werror -Wall -Wmissing-prototypes -Wmissing-declarations \
17-
-I/pg/include -I/pg/backend -I/pg/interfaces/libpq -I`dirname $FILE` -c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
16+
cc $CFLAGS -fsyntax-only -Werror -Wall -Wmissing-prototypes \
17+
-Wmissing-declarations -I/pg/include -I/pg/backend \
18+
-I/pg/interfaces/libpq -I`dirname $FILE` -c /tmp/$$.c \
19+
-o /tmp/$$.o >/tmp/$$ 2>&1
1820
if [ "$?" -ne 0 ]
1921
thenecho "$FILE"
2022
if [ "$1" = "-v" ]

‎src/tools/pginclude/pgrminclude

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

4-
# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.10 2006/07/1119:45:16 momjian Exp $
4+
# $PostgreSQL: pgsql/src/tools/pginclude/pgrminclude,v 1.11 2006/07/1120:12:29 momjian Exp $
55

66
trap "rm -f /tmp/$$.c /tmp/$$.o /tmp/$$ /tmp/$$a /tmp/$$b" 0 1 2 3 15
77
find . \( -name CVS -a -prune \) -o -type f -name '*.[ch]' -print |
@@ -57,7 +57,8 @@ do
5757

5858
cc $CFLAGS -fsyntax-only -Werror -Wall -Wmissing-prototypes \
5959
-Wmissing-declarations -I/pg/include -I/pg/backend \
60-
-c /tmp/$$.c -o /tmp/$$.o >/tmp/$$ 2>&1
60+
-I/pg/interfaces/libpq -I`dirname $FILE` -c /tmp/$$.c \
61+
-o /tmp/$$.o >/tmp/$$ 2>&1
6162
if [ "$?" -eq 0 ]
6263
thenecho "$FILE $INCLUDE"
6364
grep -v '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" >/tmp/$$b

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp