I don't know why you can't see 'gccgo' or 'gollvm', on my machine,
For main Go,
$ go version
go version go1.16.2 linux/arm64
For gccgo,
$ go version
go version go1.14.2 gccgo (GCC) 11.0.0 20200603 (experimental) linux/arm64
For gollvm,
$ go version
go version go1.16.5 gollvm LLVM 13.0.0git linux/amd64

在2021年6月28日星期一 UTC+8 下午5:51:41<kavin...@gmail.com> 写道:

> Thank you. In `go version` command I cannot see `gccgo` or `gollvm`
>
> But in `go build -x` command has mentioned that, `llvm-goc` is running 
> located at `/usr/local/bin`.
>
> On Monday, 28 June 2021 at 02:53:53 UTC+5:30 Ian Lance Taylor wrote:
>
>> On Sat, Jun 26, 2021 at 11:59 PM Kavindu Gimhan Zoysa
>> <kavin...@gmail.com> wrote:
>> >
>> > I have ran the commands in 
>> https://go.googlesource.com/gollvm/#installing, (I did not run `ninja 
>> install-gollvm`). Then I set the path of bin folder to my $PATH using 
>> `export PATH=<PATH_TO_INSTALLATION>build-debug/bin:$PATH`.
>> >
>> > Finally, I was able to run `go build/run test.go` successfully.
>> >
>> > But my problem is since I have already installed golang to my machine 
>> before install gollvm, how do I verify that go build command picked gollvm, 
>> instead of golang's compiler?
>>
>> Run "go version" and look for "gccgo" or "gollvm" in the output.
>>
>> Or, run "go build -x" to see exactly what commands it is running.
>>
>> Ian
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/2ba5ff1b-68fb-4032-9d9f-b4656649fc24n%40googlegroups.com.

Reply via email to