octave-maintainers
[Top][All Lists]
Advanced

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

Re: default clang on Debian


From: Mike Miller
Subject: Re: default clang on Debian
Date: Thu, 25 Feb 2016 09:48:11 -0800
User-agent: Mutt/1.5.24 (2015-08-30)

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++).

-- 
mike



reply via email to

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