Added the debug option to module compatibility vector.

This commit is contained in:
Igor Sysoev
2017-10-18 18:05:51 +03:00
parent 67c066b026
commit 3c6edead25
4 changed files with 13 additions and 4 deletions

11
configure vendored
View File

@@ -134,9 +134,18 @@ esac
if [ $NXT_DEBUG = YES ]; then
nxt_have=NXT_DEBUG . auto/have
nxt_debug=1
else
nxt_debug=0
fi
cat << END >> $NXT_AUTO_CONFIG_H
#ifndef NXT_DEBUG
#define NXT_DEBUG $nxt_debug
#endif
END
. auto/test_build
. auto/sources

View File

@@ -39,7 +39,7 @@ static nxt_application_module_t *nxt_app;
static uint32_t compat[] = {
NXT_VERNUM,
NXT_VERNUM, NXT_DEBUG,
};

View File

@@ -168,7 +168,7 @@ nxt_php_str_trim_lead(nxt_str_t *str, u_char t)
}
static uint32_t compat[] = {
NXT_VERNUM,
NXT_VERNUM, NXT_DEBUG,
};

View File

@@ -92,7 +92,7 @@ nxt_inline nxt_int_t nxt_python_write_py_str(nxt_python_run_ctx_t *ctx,
static uint32_t compat[] = {
NXT_VERNUM,
NXT_VERNUM, NXT_DEBUG,
};