Windows shared memory. (#181)

This commit is contained in:
Nuno Cruces
2024-11-05 17:30:10 +00:00
committed by GitHub
parent 81e7a94ca4
commit a57ce87157
12 changed files with 380 additions and 95 deletions

View File

@@ -19,7 +19,8 @@ func init() {
path := filepath.Join(os.TempDir(), "wazero")
if err := os.MkdirAll(path, 0777); err == nil {
if cache, err := wazero.NewCompilationCacheWithDir(path); err == nil {
sqlite3.RuntimeConfig.WithCompilationCache(cache)
sqlite3.RuntimeConfig = sqlite3.RuntimeConfig.
WithCompilationCache(cache)
}
}
}