aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Gilbert <bgilbert@backtick.net>2023-09-23 06:09:50 -0500
committerSam James <sam@gentoo.org>2023-09-23 13:21:29 +0100
commitc92086906ae712ffe5cd5dde9ad470f3950695d8 (patch)
treeaf961ad0fd9a8f5aebbb508353ce6cd5cd9efc39 /crossdev
parentLLVM/Clang: abort early if libc is glibc (diff)
downloadcrossdev-c92086906ae712ffe5cd5dde9ad470f3950695d8.tar.gz
crossdev-c92086906ae712ffe5cd5dde9ad470f3950695d8.tar.bz2
crossdev-c92086906ae712ffe5cd5dde9ad470f3950695d8.zip
Fix check for installed LLVM
It always succeeds, and then if LLVM isn't installed, crossdev fails with a confusing error: Target architecture not supported by installed LLVM toolchain Signed-off-by: Benjamin Gilbert <bgilbert@backtick.net> Closes: https://github.com/gentoo/crossdev/pull/14 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'crossdev')
-rwxr-xr-xcrossdev2
1 files changed, 1 insertions, 1 deletions
diff --git a/crossdev b/crossdev
index b84b757..f6ad232 100755
--- a/crossdev
+++ b/crossdev
@@ -1722,7 +1722,7 @@ if ! ex_fast ; then
# stage 0: binutils
if [[ "${LLVM}" == "yes" ]] ; then
- if [[ $(portageq has_version / "sys-devel/llvm") -ne 0 ]] ; then
+ if ! portageq has_version / "sys-devel/llvm" ; then
eerror "LLVM is not installed"
exit 1
fi