[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: RFC: Build system changes

From: Peter Samuelson <peter_at_p12n.org>
Date: Thu, 13 Dec 2012 14:34:31 -0600

> * Search for clang as well as the default gcc/cc, and prefer clang(++)
> over gcc/g++.

Is clang considered superior, then? Fair enough, I haven't really kept
up.

> * Add -pipe to C(XX)FLAGS if the compiler supports it. This speeds up
> compilation a bit in my tests.

Hmm. It seems very strange to me that the compiler driver cannot
already auto-select the most efficient means: pipes, shared memory,
temp files, or (in gcc's case) just integrating the preprocessor into
the compiler binary directly. And indeed, I thought gcc -pipe had been
basically obsolete for many years (still supported, but no faster than
the default mode). Is it really faster for you? With what compiler
and platform? Perhaps I should test it here.

> + dnl Try to turn on C++11 mode so that we can use
> + dnl std::shared_ptr<> and similar goodies
> + dnl g++ and clang++
> + SVN_CXXFLAGS_ADD_IFELSE([-std=c++11],[],[
> + SVN_CXXFLAGS_ADD_IFELSE([-std=c++0x])
> + ])

This bit confuses me as well. Does our C++ code now require this mode?
If not, what's the use of the flag?

Peter
Received on 2012-12-13 21:35:11 CET

This is an archived mail posted to the Subversion Dev mailing list.