Mercurial > vim
diff src/Makefile @ 10359:66f1b5bf3fa6 v8.0.0074
commit https://github.com/vim/vim/commit/95f096030ed1a8afea028f2ea295d6f6a70f466f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 10 20:01:45 2016 +0100
patch 8.0.0074
Problem: Cannot make Vim fail on an internal error.
Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an
internal error without mentioning where.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 10 Nov 2016 20:15:05 +0100 |
parents | 154d5a2e7395 |
children | 2055d3722c5b |
line wrap: on
line diff
--- a/src/Makefile +++ b/src/Makefile @@ -681,6 +681,10 @@ SANITIZER_LIBS = $(SANITIZER_CFLAGS) #LEAK_CFLAGS = -DEXITFREE #LEAK_LIBS = -lccmalloc +# Uncomment this line to have Vim call abort() when an internal error is +# detected. Useful when using a tool to find errors. +#ABORT_CLFAGS = -DABORT_ON_INTERNAL_ERROR + ##################################################### ### Specific systems, check if yours is listed! ### {{{ ##################################################### @@ -1409,7 +1413,7 @@ SHELL = /bin/sh PRE_DEFS = -Iproto $(DEFS) $(GUI_DEFS) $(GUI_IPATH) $(CPPFLAGS) $(EXTRA_IPATHS) POST_DEFS = $(X_CFLAGS) $(MZSCHEME_CFLAGS) $(EXTRA_DEFS) -ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(SANITIZER_CFLAGS) $(LEAK_CFLAGS) $(POST_DEFS) +ALL_CFLAGS = $(PRE_DEFS) $(CFLAGS) $(PROFILE_CFLAGS) $(SANITIZER_CFLAGS) $(LEAK_CFLAGS) $(ABORT_CLFAGS) $(POST_DEFS) # Exclude $CFLAGS for osdef.sh, for Mac 10.4 some flags don't work together # with "-E".