qualify-clang.sh: recreate a C++ file without modules

This commit is contained in:
Sylvestre Ledru 2024-05-19 10:07:26 +02:00
parent 1a6ec19234
commit 1d4a399ab7

View File

@ -1075,6 +1075,10 @@ if test ! -f /usr/lib/llvm-$VERSION/include/cxxabi.h; then
exit -1;
fi
# Recreate a C++ without modules
echo '#include <chrono>
int main() { }' > foo.cpp
# Force the usage of libc++abi
clang++-$VERSION -stdlib=libc++ -lc++abi foo.cpp -o o
./o > /dev/null