diff options
Diffstat (limited to 'llgo')
| -rw-r--r-- | llgo/cmd/llgoi/llgoi.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llgo/cmd/llgoi/llgoi.go b/llgo/cmd/llgoi/llgoi.go index e6e021be233..401e8f34df2 100644 --- a/llgo/cmd/llgoi/llgoi.go +++ b/llgo/cmd/llgoi/llgoi.go @@ -38,6 +38,12 @@ import ( "llvm.org/llvm/bindings/go/llvm" ) +// /* Force exporting __morestack if it's available, so that it is +// available to the engine when linking with libLLVM.so. */ +// +// void *__morestack __attribute__((weak)); +import "C" + func getInstPrefix() (string, error) { path, err := exec.LookPath(os.Args[0]) if err != nil { |

