Refactored LLVM paths detection based on llvm-config binary

This commit is contained in:
Bartek Kryza
2023-11-04 17:34:55 +01:00
parent 5435f0ac30
commit 15233aa0da
6 changed files with 134 additions and 93 deletions

16
util/test_llvm_versions.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
declare -a llvm_configs=("llvm-config-12"
"llvm-config-13"
"llvm-config-14"
"llvm-config-15"
"llvm-config-16"
"llvm-config-17")
for config_path in ${llvm_configs[@]}; do
echo "---------------------------------------------------------"
echo " Running clang-uml tests against LLVM $(${config_path} --version)"
echo "---------------------------------------------------------"
make clean
LLVM_CONFIG_PATH=$config_path NUMPROC=12 make test
done