Merge branch 'jk/asan-build-fix'
Work around test breakages caused by custom regex engine used in libasan, when address sanitizer is used with more recent versions of gcc and clang. * jk/asan-build-fix: Makefile: use compat regex with SANITIZE=address
This commit is contained in:
commit
808dab2b58
3
Makefile
3
Makefile
@ -1221,6 +1221,9 @@ endif
|
||||
ifneq ($(filter leak,$(SANITIZERS)),)
|
||||
BASIC_CFLAGS += -DSUPPRESS_ANNOTATED_LEAKS
|
||||
endif
|
||||
ifneq ($(filter address,$(SANITIZERS)),)
|
||||
NO_REGEX = NeededForASAN
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef sysconfdir
|
||||
|
@ -41,6 +41,11 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define regcomp git_regcomp
|
||||
#define regexec git_regexec
|
||||
#define regerror git_regerror
|
||||
#define regfree git_regfree
|
||||
|
||||
/* The following two types have to be signed and unsigned integer type
|
||||
wide enough to hold a value of a pointer. For most ANSI compilers
|
||||
ptrdiff_t and size_t should be likely OK. Still size of these two
|
||||
|
Loading…
Reference in New Issue
Block a user