From 9952ab95e6f41166215195d43e25c271b34e4ede Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 17 May 2016 16:48:14 +0100 Subject: llvm: make llvm-config wrapper error message more understandable The llvm-config wrapper has an error message that is quite abrupt, expand it so it helps the user. Signed-off-by: Ross Burton Signed-off-by: Martin Jansa (cherry picked from commit 2318f8ee8be985a0e600fc457b8cc55d5aa9144f) Signed-off-by: Armin Kuster --- meta-oe/recipes-core/llvm/llvm-common/llvm-config | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'meta-oe') diff --git a/meta-oe/recipes-core/llvm/llvm-common/llvm-config b/meta-oe/recipes-core/llvm/llvm-common/llvm-config index a9a416d931..b0f33c8d68 100644 --- a/meta-oe/recipes-core/llvm/llvm-common/llvm-config +++ b/meta-oe/recipes-core/llvm/llvm-common/llvm-config @@ -4,7 +4,8 @@ if [ $WANT_LLVM_RELEASE ]; then exec `dirname $0`/${TARGET_PREFIX}llvm-config$WANT_LLVM_RELEASE ${@} else - echo "The variable WANT_LLVM_RELEASE is not defined and exported" - echo "by your build recipe. Go figure." - exit 1 + echo "To use llvm-common WANT_LLVM_RELEASE needs to be exported." + echo "For example if this is being called through a recipe:" + echo "export WANT_LLVM_RELEASE=\"3.3\"" + exit 1 fi -- cgit 1.2.3-korg