cl: switch debug symbols with LLGO_DEBUG

This commit is contained in:
Li Jie
2024-09-21 21:09:16 +08:00
parent 88b980ac17
commit dad22b1686
11 changed files with 43 additions and 68 deletions

View File

@@ -29,9 +29,7 @@ func Init(enableDbg bool) {
llssa.Initialize(llssa.InitAll)
llssa.SetDebug(llssa.DbgFlagAll)
cl.SetDebug(cl.DbgFlagAll)
if enableDbg {
cl.EnableDebugSymbols()
}
cl.EnableDebugSymbols(enableDbg)
}
func PkgPath(dir string) string {