mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 10:37:46 +00:00
compiler: Don't externally link runtime.init
There is no reason to make this exception.
This commit is contained in:
@@ -453,7 +453,7 @@ func (c *Compiler) parseFuncDecl(f *ssa.Function) (*Frame, error) {
|
||||
}
|
||||
|
||||
func (c *Compiler) parseFunc(frame *Frame, f *ssa.Function) error {
|
||||
if frame.llvmFn.Name() != "main.main" && frame.llvmFn.Name() != "runtime.init" {
|
||||
if frame.llvmFn.Name() != "main.main" {
|
||||
// This function is only used from within Go.
|
||||
frame.llvmFn.SetLinkage(llvm.PrivateLinkage)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user