Add --llvm-config flag to tce-config
This is used to troubleshoot issues with mixed LLVM installations.
It points to the llvm-config binary of the LLVM installation that
was used for the TCE installation.
@@ -33,6 +33,8 @@ version_string="@VERSION_STRING@"
llvm_ldflags="@LLVM_LDFLAGS@"
+llvm_config="@LLVM_CONFIG@"
+
usage()
{
cat <<EOF
@@ -46,6 +48,7 @@ Options:
[--cxxflags]
[--c++-compiler]
[--so-flags]
+ [--llvm-config]
EOF
exit $1
}
@@ -86,6 +89,9 @@ while test $# -gt 0; do
--cxxflags)
echo_cxxflags=yes
;;
+ --llvm-config)
+ echo_llvm_config=yes
+ ;;
*)
usage 1 1>&2
;;
@@ -122,3 +128,7 @@ fi
if test "$echo_cxxflags" = "yes"; then
echo "$cxxflags"
fi
+
+if test "$echo_llvm_config" = "yes"; then
+ echo "$llvm_config"
+fi
