fixed explicit BACKTRACE order

and automatic linux backtrace detection :
__GLIBC__ must be tested after #include <features.h>
This commit is contained in:
Yann Collet committed 2018-10-09 17:12:21 -07:00
1 parent 1e0c5466c5
commit e0ab6b61b7
2 files changed
+13 -11

No files matched your search

+4 -2
View File
@@ -134,8 +134,10 @@ else
LZ4_MSG := $(NO_LZ4_MSG)
endif
# enable backtrace symbol names for Linux & Darwin
BACKTRACE ?= 0
# explicit backtrace enable/disable for Linux & Darwin
ifeq ($(BACKTRACE), 0)
DEBUGFLAGS += -DBACKTRACE_ENABLE=0
endif
ifeq (,$(filter Windows%, $(OS)))
ifeq ($(BACKTRACE), 1)
DEBUGFLAGS += -DBACKTRACE_ENABLE=1