From aa8287f8e75654c8f8a1759b8a1cff520b249fa5 Mon Sep 17 00:00:00 2001
From: Nuno Cruces <ncruces@users.noreply.github.com>
Date: Thu, 16 Jan 2025 17:21:36 +0000
Subject: [PATCH] Allow others to enable threads.

---
 sqlite.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sqlite.go b/sqlite.go
index 18f8241d..90352d07 100644
--- a/sqlite.go
+++ b/sqlite.go
@@ -58,8 +58,8 @@ func compileSQLite() {
 		} else {
 			cfg = cfg.WithMemoryLimitPages(4096) // 256MB
 		}
+		cfg = cfg.WithCoreFeatures(api.CoreFeaturesV2)
 	}
-	cfg = cfg.WithCoreFeatures(api.CoreFeaturesV2)
 
 	instance.runtime = wazero.NewRuntimeWithConfig(ctx, cfg)