fix export math functions issue

Этот коммит содержится в:
learnforpractice 2021-10-03 09:27:33 +08:00 коммит произвёл Ayke
родитель 2b453db4da
коммит 04040453b4
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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.

Просмотреть файл

@ -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()