Merge pull request #968 from cpunion/find-llgo-root

Find llgo root
This commit is contained in:
xushiwei
2025-02-01 19:01:34 +08:00
committed by GitHub
19 changed files with 484 additions and 288 deletions

View File

@@ -18,6 +18,9 @@ package ssa_test
import (
"go/types"
"io"
"log"
"os"
"testing"
"github.com/goplus/llgo/compiler/cl/cltest"
@@ -26,6 +29,10 @@ import (
)
func init() {
devNull, _ := os.OpenFile(os.DevNull, os.O_WRONLY, 0)
os.Stderr = devNull
os.Stdout = devNull
log.SetOutput(io.Discard)
ssa.SetDebug(ssa.DbgFlagAll)
}