add sanity checking to --with-iwyu

add some error checking so developers like me don't pass an empty
--with-iwyu option and get weird compile time error messages.

Change-Id: I142a0404db1bce905ce4d791f286d7bfc913078c
Reviewed-on: https://gerrit.libreoffice.org/12988
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Noel Grandin
2014-11-21 08:41:31 +00:00
committed by Noel Grandin
parent 8e206be4ed
commit 40e7eecb7e
+7 -1
View File
@@ -2079,7 +2079,7 @@ AC_ARG_WITH(gssapi,
AC_ARG_WITH(iwyu,
AS_HELP_STRING([--with-iwyu],
[Provide IWYU binary path to check unneeded includes instead of building.
[Use given IWYU binary path to check unneeded includes instead of building.
Use only if you are hacking on it.]),
,)
@@ -12512,6 +12512,12 @@ AC_SUBST(PARALLELISM)
IWYU_PATH="$with_iwyu"
AC_SUBST(IWYU_PATH)
if test ! -z "$IWYU_PATH"; then
if test ! -f "$IWYU_PATH"; then
AC_MSG_ERROR([cannot find include-what-you-use binary specified by --with-iwyu])
fi
fi
#
# Set up ILIB for MSVC build
#