fix: solve plugin loading error

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Rohith Raju <rohithraju488@gmail.com>
This commit is contained in:
Jason Dellaluce 2023-07-10 15:57:01 +00:00 committed by poiana
parent 54ab1eed9e
commit 590b034a55

View File

@ -22,7 +22,7 @@ using namespace falco::app::actions;
falco::app::run_result falco::app::actions::load_plugins(falco::app::state& s)
{
#if !defined(MUSL_OPTIMIZED) and !defined(__EMSCRIPTEN__)
#if defined(MUSL_OPTIMIZED) or defined(__EMSCRIPTEN__)
if (!s.config->m_plugins.empty())
{
return run_result::fatal("Loading plugins dynamic libraries is not supported by this Falco build");