[oe-commits] [meta-openembedded] 08/60: llvm: make llvm-config wrapper error message more understandable

git at git.openembedded.org git at git.openembedded.org
Wed Aug 17 18:06:49 UTC 2016


martin_jansa pushed a commit to branch krogoth-next
in repository meta-openembedded.

commit 9952ab95e6f41166215195d43e25c271b34e4ede
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Tue May 17 16:48:14 2016 +0100

    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 <ross.burton at intel.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
    (cherry picked from commit 2318f8ee8be985a0e600fc457b8cc55d5aa9144f)
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta-oe/recipes-core/llvm/llvm-common/llvm-config | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/meta-oe/recipes-core/llvm/llvm-common/llvm-config b/meta-oe/recipes-core/llvm/llvm-common/llvm-config
index a9a416d..b0f33c8 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list