comparison src/Makefile @ 14814:6cfd3d47f1ca v8.1.0419

patch 8.1.0419: Cygwin: running cproto fails with -O2 commit https://github.com/vim/vim/commit/de2bd37becbec3547ffbaa86321c7ea6379d6bf0 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 21 13:56:25 2018 +0200 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 https://github.com/vim/vim/issues/3465)
author Christian Brabandt <cb@256bit.org>
date Fri, 21 Sep 2018 14:00:06 +0200
parents 084e7e74846b
children 1f3fe26f8e3f
comparison
equal deleted inserted replaced
14813:4d2ab393f59a 14814:6cfd3d47f1ca
2026 # Filter out arguments that cproto doesn't support. 2026 # Filter out arguments that cproto doesn't support.
2027 # Don't pass "-pthread", "-fwrapv" and similar arguments to cproto, it sees 2027 # Don't pass "-pthread", "-fwrapv" and similar arguments to cproto, it sees
2028 # them as a list of individual flags. 2028 # them as a list of individual flags.
2029 # The -E"gcc -E" argument must be separate to avoid problems with shell 2029 # The -E"gcc -E" argument must be separate to avoid problems with shell
2030 # quoting. 2030 # quoting.
2031 # Strip -O2, it may cause cproto to write stderr to the file "2".
2031 CPROTO = cproto $(PROTO_FLAGS) -DPROTO \ 2032 CPROTO = cproto $(PROTO_FLAGS) -DPROTO \
2032 `echo '$(LINT_CFLAGS)' | sed -e 's/ -[a-z-]\+//g'` 2033 `echo '$(LINT_CFLAGS)' | sed -e 's/ -[a-z-]\+//g' -e 's/ -O[^ ]\+//g'`
2033 2034
2034 ### Would be nice if this would work for "normal" make. 2035 ### Would be nice if this would work for "normal" make.
2035 ### Currently it only works for (Free)BSD make. 2036 ### Currently it only works for (Free)BSD make.
2036 #$(PRO_AUTO): $$(*F).c 2037 #$(PRO_AUTO): $$(*F).c
2037 # $(CPROTO) -DFEAT_GUI $(*F).c > $@ 2038 # $(CPROTO) -DFEAT_GUI $(*F).c > $@