Skip to content

Commit

Permalink
Merge pull request #30 from gentooza/master
Browse files Browse the repository at this point in the history
added llvm-tools rust component check in Common.mk
  • Loading branch information
bradjc authored Feb 7, 2024
2 parents 3570b47 + d5f7f2d commit c7ba292
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions boards/Common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,15 @@ 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
# 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)
$(info llvm-tools component seems to be installed, continue...)
TOOLCHAIN := llvm-tools
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
Expand Down

0 comments on commit c7ba292

Please sign in to comment.