diff options
author | Benjamin Gilbert <bgilbert@backtick.net> | 2023-09-23 06:09:50 -0500 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-23 13:21:29 +0100 |
commit | c92086906ae712ffe5cd5dde9ad470f3950695d8 (patch) | |
tree | af961ad0fd9a8f5aebbb508353ce6cd5cd9efc39 | |
parent | LLVM/Clang: abort early if libc is glibc (diff) | |
download | crossdev-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>
-rwxr-xr-x | crossdev | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |