mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-19 20:45:55 +00:00
Use __CHECKER__ to detect when sparse is running
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Acked-by: Andreas Ericsson <ae@op5.se> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
80133dad8a
commit
1764376034
2
Makefile
2
Makefile
@ -38,7 +38,7 @@ apidocs:
|
||||
test: $(TEST_RUN)
|
||||
|
||||
sparse:
|
||||
cgcc -no-compile -DSPARSE_IS_RUNNING $(ALL_CFLAGS) $(SPARSE_FLAGS) $(SRC_C)
|
||||
cgcc -no-compile $(ALL_CFLAGS) $(SPARSE_FLAGS) $(SRC_C)
|
||||
|
||||
install-headers: $(PUBLIC_HEADERS)
|
||||
@mkdir -p /tmp/gitinc/git
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
#endif
|
||||
|
||||
/* sparse doesn't grok thread-local variables */
|
||||
#ifdef SPARSE_IS_RUNNING
|
||||
#if defined(__CHECKER__)
|
||||
# undef GIT_HAS_TLS
|
||||
# undef GIT_TLS
|
||||
# define GIT_TLS
|
||||
|
||||
Loading…
Reference in New Issue
Block a user