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:
@@ -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.
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user