[llvm-commits] [llvm] r118684 - in /llvm/trunk: Makefile.config.in autoconf/configure.ac configure

Duncan Sands baldrick at free.fr
Wed Nov 10 10:04:30 PST 2010


Hi Tobias, thanks so much for doing this!

> --- llvm/trunk/autoconf/configure.ac (original)
> +++ llvm/trunk/autoconf/configure.ac Wed Nov 10 10:31:34 2010
> @@ -1414,12 +1414,37 @@
>   dnl Check, whether __dso_handle is present
>   AC_CHECK_FUNCS([__dso_handle])
>
> +dnl Check wether llvm-gcc is based on dragonegg
> +AC_CACHE_CHECK([whether llvm-gcc is dragonegg],[llvm_cv_llvmgcc_dragonegg],
> +[llvm_cv_llvmgcc_dragonegg="no"
> +if test -x "$LLVMGCC" ; then
> +  cp /dev/null conftest.c
> +  "$LLVMGCC" -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c | \
> +  grep 'target datalayout ='>  /dev/null 2>&1

The grep test shouldn't be needed, since gcc should fail to execute if
it doesn't support plugins, or a plugin with name dragonegg has not been
loaded.  That said, it doesn't hurt.

Ciao,

Duncan.



More information about the llvm-commits mailing list