mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
24463a168a
This is not strictly necessary to build libunwind (it can be built with -DNDEBUG), but it will be handy while it is debugged. It can be removed afterwards.
11 lines
230 B
C
11 lines
230 B
C
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
char *getenv(const char *varname) {
|
|
if(!strcmp(varname, "LIBUNWIND_PRINT_APIS") ||
|
|
!strcmp(varname, "LIBUNWIND_PRINT_UNWINDING")) {
|
|
return "1";
|
|
} else {
|
|
return NULL;
|
|
}
|
|
}
|