octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: default clang on Debian


From: John W. Eaton
Subject: Re: default clang on Debian
Date: Thu, 25 Feb 2016 12:56:57 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0

On 02/25/2016 12:49 PM, José Luis García Pallero wrote:
2016-02-25 18:48 GMT+01:00 Mike Miller <address@hidden>:
On Thu, Feb 25, 2016 at 09:34:44 -0800, Rik wrote:
On 02/25/2016 09:00 AM, address@hidden wrote:

Also, I had both clang 3.6 and 3.7 installed, but though I installed 3.7
after 3.6, it was not set up as the default version of clang.  Then I
removed 3.6 and there was no default version of clang (I still had to use
clang-3.7 and clang++-3.7 to invoke them).  Is there a proper way to set
up 3.7 as the default version on Debian?

Maybe 'update-alternatives'?

No, compilers on Debian do not use the alternatives facility. The
symlinks to the default versions are hardcoded. I have clang 3.6, 3.7,
and 3.8 installed and 3.6 is still the default.

I configure Octave for clang with

   CC="clang-$ver" CXX="clang++-$ver -stdlib=libc++"

(the latter option instructs clang to use libc++ instead of libstdc++).

Is not possible to use the alias command in bash?

Sure, and I know how to select the compiler I want to use. That's not the issue. I was looking for an accepted way to select the system default. Apparently there isn't one and that's fine.

jwe





reply via email to

[Prev in Thread] Current Thread [Next in Thread]