Hi,
Thanks for your reply.
It's a bit weird.
I tried LLVM10.0.1 and the LLVM13 built from github along with gollvm, both did not work.
However, I just tried LLVM11 and it worked. I haven't tried LLVM12. It looks like different LLVM version has different syntax?
The Go code I tried is simplest:
I have 1 file hello.go:
package main
import(
"fmt"
)
func main() {
fmt.Println("Hello, playground")
}
> go build -work -x hello.go 1> transcript.txt 2>&1
> egrep '(WORK=|llvm-goc -c)' transcript.txt
WORK=/tmp/go-build903363323
[...]
> WORK=/tmp/go-build903363323
>[..change output to -o hello.ll; add -S -emit-llvm]
It outputs a hello.ll file. LLVM11 can process it but 10.0.1 and 13git cannot
Would love to hear your feedback. Maybe I need the exact LLVM version that gollvm is targeting?
Khanh