Skip to content

Commit bf80053

Browse files
committed
makedepend_file.SH - add -DPERL_CORE so we pick up all deps
makedepend_file does not find all deps for our code because in many cases the dependencies are hidden behind a guard clause which checks if PERL_CORE is defined. This is annoying when working on the regex engine as after `make regen` is executed `make` does not notice that files like regnodes.h have been updated. No doubt it is annoying in other contexts too. This adds the -DPERL_CORE so that we pick up these guarded dependencies. With this patch things updating regnodes.h is noticed and regcomp.o, regexec.o and miniperl will be appropriately rebuilt. Thanks to Dagfinn Ilmari Mannsåker for figuring this out.
1 parent 2caf827 commit bf80053

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

makedepend_file.SH

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ esac
132132
#fi
133133
134134
if [ "$osname" = os390 ]; then
135-
$cppstdin $finc -I. $cppflags $cppminus <UU/$file.c |
135+
$cppstdin -DPERL_CORE $finc -I. $cppflags $cppminus <UU/$file.c |
136136
$sed \
137137
-e '/^#.*<stdin>/d' \
138138
-e '/^#.*"-"/d' \
@@ -146,7 +146,7 @@ esac
146146
-e 's|\.c\.c|.c|' $uwinfix | \
147147
$uniq | $sort | $uniq >>$outfile
148148
else
149-
$cppstdin $finc -I. $cppflags $cppminus <UU/$file.c >$$.cout 2>$$.cerr
149+
$cppstdin -DPERL_CORE $finc -I. $cppflags $cppminus <UU/$file.c >$$.cout 2>$$.cerr
150150
$sed \
151151
-e '1d' \
152152
-e '/^#.*<stdin>/d' \

0 commit comments

Comments
 (0)