Skip to content

Commit

Permalink
put llvm-tools check inside if statement of rustup verification, in C…
Browse files Browse the repository at this point in the history
…ommon Makefile
  • Loading branch information
gentooza committed Feb 7, 2024
1 parent 51a0c82 commit d5f7f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boards/Common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ ifneq ($(shell $(RUSTUP) target list | grep "$(TARGET) (installed)"),$(TARGET) (
$(warning Consider updating 'targets' in 'rust-toolchain.toml')
$(shell sleep 5s && $(RUSTUP) target add $(TARGET))
endif
endif # $(NO_RUSTUP)
# check llvm_tools component
LLVM_TOOLS_INSTALLED := $(shell rustup component list --installed | grep llvm-tools 1>/dev/null 2>&1 && echo "true" || echo "no")
ifeq ($(LLVM_TOOLS_INSTALLED), true)
Expand All @@ -202,6 +201,7 @@ else
$(warning Install llvm-tools component: rustup component add llvm-tools , and try again.)
TOOLCHAIN := N/A
endif
endif # $(NO_RUSTUP)

# If the user is using the standard toolchain provided as part of the llvm-tools
# rustup component we need to get the full path. rustup should take care of this
Expand Down

0 comments on commit d5f7f2d

Please sign in to comment.