Open sathio opened 2 years ago
The reason is that clang doesn't allow -std=c++11 for C source file but -std=c++11 is needed for one C++ file in the extension.
I figured out one hack.
extra_compile_args.extend(['-std=libc++'])
clang
)#!/bin/sh
echo wrapper called
if [[ "$@" == *"checks.cc"* ]]; then
echo "c++ detected"
/usr/bin/clang "$@" -std=c++11
else
/usr/bin/clang "$@"
fi
export PATH=<path to shell script>:$PATH
) so the shell script will be invoked firstInstead of the wrapper script, another option is to install Clang 16 or later which defaults to C++17 standard. May also use CC=/path/to/clang
.
I get this error