mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 23:13:40 +00:00
all: remove last traces of the C runtime
This increases code size on the nrf, but it is a fixed increase and can hopefully be reduced in the future. The Makefile gets a lot smaller with this which is a huge advantage (less build time complexity).
This commit is contained in:
@@ -96,6 +96,8 @@ func NewCompiler(pkgName, triple string, dumpSSA bool) (*Compiler, error) {
|
||||
c.targetData = c.machine.CreateTargetData()
|
||||
|
||||
c.mod = llvm.NewModule(pkgName)
|
||||
c.mod.SetTarget(triple)
|
||||
c.mod.SetDataLayout(c.targetData.String())
|
||||
c.ctx = c.mod.Context()
|
||||
c.builder = c.ctx.NewBuilder()
|
||||
c.dibuilder = llvm.NewDIBuilder(c.mod)
|
||||
|
||||
Reference in New Issue
Block a user