Externalize compilation cache by compilers (#747)

This adds the experimental support of the file system compilation cache.
Notably, experimental.WithCompilationCacheDirName allows users to configure
where the compiler writes the cache into.

Versioning/validation of binary compatibility has been done via the release tag
(which will be created from the end of this month). More specifically, the cache
file starts with a header with the hardcoded wazero version.


Fixes #618

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Co-authored-by: Crypt Keeper <64215+codefromthecrypt@users.noreply.github.com>
This commit is contained in:
Takeshi Yoneda
2022-08-18 19:37:11 +09:00
committed by GitHub
parent 076d3245e3
commit 3b32c2028b
20 changed files with 1015 additions and 89 deletions

5
version.go Normal file
View File

@@ -0,0 +1,5 @@
package wazero
// wazeroVersion holds the current version of wazero.
// TODO: use debug.ReadBuildInfo automatically set wazeroVersion to the release tag.
var wazeroVersion = "dev"