0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.1.0419: Cygwin: running cproto fails with -O2

Problem:    Cygwin: running cproto fails with -O2.
Solution:   Strip -O2 for cproto. (Ken Takata, closes #3465)
This commit is contained in:
Bram Moolenaar
2018-09-21 13:56:25 +02:00
parent b872e63fc6
commit de2bd37bec
2 changed files with 4 additions and 1 deletions

View File

@@ -2028,8 +2028,9 @@ proto: $(PRO_AUTO) $(PRO_MANUAL)
# them as a list of individual flags. # them as a list of individual flags.
# The -E"gcc -E" argument must be separate to avoid problems with shell # The -E"gcc -E" argument must be separate to avoid problems with shell
# quoting. # quoting.
# Strip -O2, it may cause cproto to write stderr to the file "2".
CPROTO = cproto $(PROTO_FLAGS) -DPROTO \ CPROTO = cproto $(PROTO_FLAGS) -DPROTO \
`echo '$(LINT_CFLAGS)' | sed -e 's/ -[a-z-]\+//g'` `echo '$(LINT_CFLAGS)' | sed -e 's/ -[a-z-]\+//g' -e 's/ -O[^ ]\+//g'`
### Would be nice if this would work for "normal" make. ### Would be nice if this would work for "normal" make.
### Currently it only works for (Free)BSD make. ### Currently it only works for (Free)BSD make.

View File

@@ -794,6 +794,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
419,
/**/ /**/
418, 418,
/**/ /**/