diff --git a/builder/build.go b/builder/build.go index c16193d19e..b5b15859bc 100644 --- a/builder/build.go +++ b/builder/build.go @@ -819,6 +819,7 @@ func Build(pkgName, outpath, tmpdir string, config *compileopts.Config) (BuildRe if config.Target.Triple == "wasm32-unknown-polkawasm" { args = append(args, opt, + "-g", "--signext-lowering", // "--signature-pruning", // "--const-hoisting", diff --git a/src/runtime/gc_debug.go b/src/runtime/gc_debug.go index bb7aaff769..ad3ae819cb 100644 --- a/src/runtime/gc_debug.go +++ b/src/runtime/gc_debug.go @@ -42,6 +42,7 @@ func printstr(str string) { break } - putchar(str[i]) + putcharBuffer[putcharPosition] = str[i] + putcharPosition++ } } diff --git a/src/runtime/runtime_polkawasm.go b/src/runtime/runtime_polkawasm.go index d99833c883..6891d2992a 100644 --- a/src/runtime/runtime_polkawasm.go +++ b/src/runtime/runtime_polkawasm.go @@ -30,10 +30,7 @@ func abort() { trap() } -func putchar(c byte) { - putcharBuffer[putcharPosition] = c - putcharPosition++ -} +func putchar(c byte) {} func getchar() byte { return 0