Re: How to select GCC installation by user ?

23 views
Skip to first unread message

Hans Wennborg

unread,
Sep 17, 2018, 3:34:57 AM9/17/18
to Tao Peng, Clang maintainers
I think the --gcc-toolchain= flag should be able to do this.

On Sun, Sep 16, 2018 at 11:47 AM, Tao Peng <dev.p...@gmail.com> wrote:
> Hi all,
>
> I am a fresh to clang, now I have three version gcc in the machine,4.8.2,
> 4.8.5, 5.3.0.
> The gcc4.8.2 and gcc4.8.5's location is "
> /usr/lib/gcc/x86_64-redhat-linux/",
> so clang can find these gcc installation.
> But gcc5.3.0's location is "/usr/local/gcc-5.3.0/", and the gcc5.3.0 rpm can
> not relocatable.
> But I want clang can call gcc5.3.0. How can clang find the gcc5.3
> installation?
>
> ################################
> #clang -v
> clang version 6.0.1
> Target: x86_64-unknown-linux-gnu
> Thread model: posix
> InstalledDir: /usr/local/bin
> Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.2
> Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5
> Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5
> Candidate multilib: .;@m64
> Candidate multilib: 32;@m32
> Selected multilib: .;@m64
> #################################
>
> Thanks so much!
Reply all
Reply to author
Forward
0 new messages