build: download and compile with wasi-sdk
This commit is contained in:
8
internal/env/env.go
vendored
8
internal/env/env.go
vendored
@@ -32,6 +32,14 @@ func GOROOT() string {
|
||||
panic("cannot get GOROOT: " + err.Error())
|
||||
}
|
||||
|
||||
func LLGoCacheDir() string {
|
||||
userCacheDir, err := os.UserCacheDir()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return filepath.Join(userCacheDir, "llgo")
|
||||
}
|
||||
|
||||
func LLGoRuntimeDir() string {
|
||||
root := LLGoROOT()
|
||||
if root != "" {
|
||||
|
||||
Reference in New Issue
Block a user