Identify when compiled with openresty LuaJIT

Debian testing ships it
This commit is contained in:
sfan5 2024-06-05 22:43:06 +02:00
parent 558d749d54
commit fee6e8e11b

View file

@ -427,7 +427,11 @@ static void print_version(std::ostream &os)
os << PROJECT_NAME_C " " << g_version_hash os << PROJECT_NAME_C " " << g_version_hash
<< " (" << porting::getPlatformName() << ")" << std::endl; << " (" << porting::getPlatformName() << ")" << std::endl;
#if USE_LUAJIT #if USE_LUAJIT
os << "Using " << LUAJIT_VERSION << std::endl; os << "Using " << LUAJIT_VERSION
#ifdef OPENRESTY_LUAJIT
<< " (OpenResty)"
#endif
<< std::endl;
#else #else
os << "Using " << LUA_RELEASE << std::endl; os << "Using " << LUA_RELEASE << std::endl;
#endif #endif