Re: Why CXX defaults to g++ instead of c++

2016-07-27 Thread Lei Zhang
2016-07-27 23:21 GMT+08:00 Paul Smith : > On Wed, 2016-07-27 at 21:39 +0800, Lei Zhang wrote: >> The problem is, somehow Make defaults CXX to g++ instead of c++, so >> my solution doesn't work. While CC already defaults to cc, is there >> any specific reason for CXX not to default to c++? > > The P

Re: Parallel builds across makefiles

2016-07-27 Thread Brian Vandenberg
I haven't seen similar issues but I have a hypothesis: make is single-threaded and therefore it consumes output from jobs in the same thread it uses to reap/spawn new jobs. If make is spending a large enough amount of time consuming output then this will impacts the rate at which it can spawn/reap

Re: Why CXX defaults to g++ instead of c++

2016-07-27 Thread Paul Smith
On Wed, 2016-07-27 at 21:39 +0800, Lei Zhang wrote: > The problem is, somehow Make defaults CXX to g++ instead of c++, so > my solution doesn't work. While CC already defaults to cc, is there > any specific reason for CXX not to default to c++? The POSIX spec defines that "cc" be a C compiler, and

Why CXX defaults to g++ instead of c++

2016-07-27 Thread Lei Zhang
Hi, I'm trying to use clang as the default compiler in my system. Ideally I'd only need to link cc/c++ to clang, and still keep gcc in case it's needed. The problem is, somehow Make defaults CXX to g++ instead of c++, so my solution doesn't work. While CC already defaults to cc, is there any spec