WIP try to use MSVCRT.DLL instead of UCRT

Very simple "hello world" style programs work.
This commit is contained in:
Ayke van Laethem
2025-04-07 15:09:32 +02:00
parent e95d56f749
commit bd7594a0ff
5 changed files with 112 additions and 39 deletions
+5
View File
@@ -3,6 +3,7 @@ package builder
import (
"os"
"path/filepath"
"strings"
"github.com/tinygo-org/tinygo/compileopts"
"github.com/tinygo-org/tinygo/goenv"
@@ -229,6 +230,10 @@ var libCompilerRT = Library{
builtins = append(builtins, avrBuiltins...)
case "x86_64", "aarch64", "riscv64": // any 64-bit arch
builtins = append(builtins, genericBuiltins128...)
case "i386":
if strings.Split(target, "-")[2] == "windows" {
builtins = append(builtins, "i386/chkstk.S")
}
}
return builtins, nil
},