>   * 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

Reply via email to