diff options
author | Ross Burton <ross.burton@intel.com> | 2016-05-17 16:48:14 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2016-08-16 10:29:38 -0700 |
commit | 9952ab95e6f41166215195d43e25c271b34e4ede (patch) | |
tree | 3dd8adf00662ef9610ca1669b11cb768b4c144c0 | |
parent | 7bef1e2a34e6e524b06bcb525601458525a887d9 (diff) | |
download | meta-openembedded-9952ab95e6f41166215195d43e25c271b34e4ede.tar.gz |
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@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit 2318f8ee8be985a0e600fc457b8cc55d5aa9144f)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-oe/recipes-core/llvm/llvm-common/llvm-config | 7 |
1 files 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 a9a416d93..b0f33c8d6 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 @@ | |||
4 | if [ $WANT_LLVM_RELEASE ]; then | 4 | if [ $WANT_LLVM_RELEASE ]; then |
5 | exec `dirname $0`/${TARGET_PREFIX}llvm-config$WANT_LLVM_RELEASE ${@} | 5 | exec `dirname $0`/${TARGET_PREFIX}llvm-config$WANT_LLVM_RELEASE ${@} |
6 | else | 6 | else |
7 | echo "The variable WANT_LLVM_RELEASE is not defined and exported" | 7 | echo "To use llvm-common WANT_LLVM_RELEASE needs to be exported." |
8 | echo "by your build recipe. Go figure." | 8 | echo "For example if this is being called through a recipe:" |
9 | exit 1 | 9 | echo "export WANT_LLVM_RELEASE=\"3.3\"" |
10 | exit 1 | ||
10 | fi | 11 | fi |