easylogging: show the 'no stack trace' warning only once
If execinfo.h is not available, output the stack trace warning only once, so we don't spam the build logs with it.
This commit is contained in:
parent
782a84f7b4
commit
5cc8469332
1
external/easylogging++/easylogging++.cc
vendored
1
external/easylogging++/easylogging++.cc
vendored
@ -14,6 +14,7 @@
|
||||
// http://muflihun.com
|
||||
//
|
||||
|
||||
#define EASYLOGGING_CC
|
||||
#include "easylogging++.h"
|
||||
|
||||
#if defined(AUTO_INITIALIZE_EASYLOGGINGPP)
|
||||
|
3
external/easylogging++/easylogging++.h
vendored
3
external/easylogging++/easylogging++.h
vendored
@ -204,12 +204,13 @@ ELPP_INTERNAL_DEBUGGING_OUT_INFO << ELPP_INTERNAL_DEBUGGING_MSG(internalInfoStre
|
||||
# define ELPP_STACKTRACE 1
|
||||
# else
|
||||
# define ELPP_STACKTRACE 0
|
||||
# ifdef EASYLOGGING_CC
|
||||
# if ELPP_COMPILER_MSVC
|
||||
# pragma message("Stack trace not available for this compiler")
|
||||
# else
|
||||
# warning "Stack trace not available for this compiler";
|
||||
# endif // ELPP_COMPILER_MSVC
|
||||
# define ELPP_STACKTRACE 0
|
||||
# endif
|
||||
# endif // ELPP_COMPILER_GCC
|
||||
#else
|
||||
# define ELPP_STACKTRACE 0
|
||||
|
Loading…
Reference in New Issue
Block a user