If would help if you could share your exact cmake invocation I think.

If your cmake invocation looks like

cmake \
   -DCMAKE_BUILD_TYPE=RelWithDebInfo \
   -DCMAKE_INSTALL_PREFIX=/tmp/myinstall \
   -DCMAKE_C_COMPILER=/usr/bin/clang-10 \
   -DCMAKE_ASM_COMPILER=/usr/bin/clang-10 \
   -DCMAKE_CXX_COMPILER=/usr/bin/clang++-10 \
   -G Ninja ../llvm-project/llvm

Then you should be prepending /tmp/myinstall/bin to your path.

Thanks, Than

On Sun, Jun 27, 2021 at 2:59 AM Kavindu Gimhan Zoysa <kavindu...@gmail.com>
wrote:

> Hi all,
>
> 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?
>
> Thank you,
> Kavindu
>
> --
> 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/6623d44d-da35-4c54-8c90-9e6a8cc9cb00n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/6623d44d-da35-4c54-8c90-9e6a8cc9cb00n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CA%2BUr55G-rR6Uco72zA3Em_QFMgYrL39quNc22znKhDOZ4qEhgw%40mail.gmail.com.

Reply via email to