travis: avoid using unset llvm-config
Fixes the following errors: usage: which [-as] program ... /Users/travis/.travis/job_stages: line 110: --version: command not found ... caused by the use of an undefined $LLVM_CONFIG Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
14
.travis.yml
14
.travis.yml
@@ -823,12 +823,16 @@ script:
|
|||||||
|
|
||||||
- |
|
- |
|
||||||
if test "x$BUILD" = xmeson; then
|
if test "x$BUILD" = xmeson; then
|
||||||
# We need to control the version of llvm-config we're using, so we'll
|
if test -n "$LLVM_CONFIG"; then
|
||||||
# generate a native file to do so. This requires meson >=0.49
|
# We need to control the version of llvm-config we're using, so we'll
|
||||||
#
|
# generate a native file to do so. This requires meson >=0.49
|
||||||
echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file
|
#
|
||||||
|
echo -e "[binaries]\nllvm-config = '`which $LLVM_CONFIG`'" > native.file
|
||||||
|
|
||||||
$LLVM_CONFIG --version
|
$LLVM_CONFIG --version
|
||||||
|
else
|
||||||
|
: > native.file
|
||||||
|
fi
|
||||||
|
|
||||||
export CFLAGS="$CFLAGS -isystem`pwd`"
|
export CFLAGS="$CFLAGS -isystem`pwd`"
|
||||||
meson _build \
|
meson _build \
|
||||||
|
Reference in New Issue
Block a user