[llvm-dev] [llvm v3.6.2+] BROKEN: g++-4.9: error: unrecognized command line option '-Wcovered-switch-default'

Sedat Dilek via llvm-dev llvm-dev at lists.llvm.org
Fri Sep 4 01:51:21 PDT 2015


Hi,

my configure-line requires CC and CXX set (like in the make-line).

[ build-script ]
...
[ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}
cd $BUILD_DIR

../llvm/configure CC=$CC_FOR_BUILD CXX=$CXX_FOR_BUILD --prefix=$PREFIX
$CFG_OPTS 2>&1 | tee $LOGS_DIR/$CFG_LOG_FILE

$MAKE CC=$CC_FOR_BUILD CXX=$CXX_FOR_BUILD $MAKE_OPTS 2>&1 | tee
$LOGS_DIR/$BUILD_LOG_FILE
...

So this looks good now.

$ egrep 'CC=|CXX=|COVERED_SWITCH_DEFAULT=' llvm-build/config.log
  $ ../llvm/configure CC=gcc-4.9 CXX=g++-4.9
--prefix=/opt/llvm-toolchain-3.6.2 --enable-optimized
--enable-assertions --enable-targets=host-only
COLLECT_GCC=gcc-4.9
COLLECT_GCC=g++-4.9
BUILD_CC=''
BUILD_CXX=''
CC='gcc-4.9'
COVERED_SWITCH_DEFAULT=''
CXX='g++-4.9'
ENABLE_EMBED_STDCXX='0'
ac_ct_CC=''
ac_ct_CXX=''

Just as a note: With LLVM/Clang v3.6.1 and prior I did not need to
pass CC/CXX to my configure-line.

Regards,
- Sedat -


More information about the llvm-dev mailing list