native_capnp seems to ignore the CC/CXX settings. This leads to compile failures on distros that come with an older GCC, such as RHEL-based Linux 8, or the latest OpenSuse Leap:
0# ( cd depends && make CC=clang CXX=clang++ -j $(nproc) )
1
2Configuring native_capnp...
3-- The CXX compiler identification is GNU 7.5.0
4-- Detecting CXX compiler ABI info
5-- Detecting CXX compiler ABI info - failed
6-- Check for working CXX compiler: /usr/bin/g++
7-- Check for working CXX compiler: /usr/bin/g++ - broken
8CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:60 (message):
9 The C++ compiler
10
11 "/usr/bin/g++"