diff --git a/compiler/alias.go b/compiler/alias.go index bdc6cc4d..ee51c5e5 100644 --- a/compiler/alias.go +++ b/compiler/alias.go @@ -75,6 +75,9 @@ var stdlibAliases = map[string]string{ // createAlias implements the function (in the builder) as a call to the alias // function. func (b *builder) createAlias(alias llvm.Value) { + b.llvmFn.SetVisibility(llvm.HiddenVisibility) + b.llvmFn.SetUnnamedAddr(true) + if b.Debug { if b.fn.Syntax() != nil { // Create debug info file if present. diff --git a/compiler/compiler.go b/compiler/compiler.go index cd2585f9..cdce396f 100644 --- a/compiler/compiler.go +++ b/compiler/compiler.go @@ -23,7 +23,7 @@ import ( // Version of the compiler pacakge. Must be incremented each time the compiler // package changes in a way that affects the generated LLVM module. // This version is independent of the TinyGo version number. -const Version = 19 // last change: fix channel ops with zero values +const Version = 20 // last change: fix export math functions issue func init() { llvm.InitializeAllTargets()