Skip to content

Commit

Permalink
Check whether cargo exists and disable the blazesym feature. (iovisor…
Browse files Browse the repository at this point in the history
  • Loading branch information
Rtoax committed Sep 8, 2022
1 parent 5f44839 commit b7ea45d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libbpf-tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ ARCH := $(shell uname -m | sed 's/x86_64/x86/' | sed 's/aarch64/arm64/' \
| sed 's/riscv64/riscv/' | sed 's/loongarch.*/loongarch/')
BTFHUB_ARCHIVE ?= $(abspath btfhub-archive)
ifeq ($(ARCH),x86)
CARGO ?= $(shell which cargo)
ifeq ($(strip $(CARGO)),)
USE_BLAZESYM ?= 0
else
USE_BLAZESYM ?= 1
endif
endif

ifeq ($(wildcard $(ARCH)/),)
$(error Architecture $(ARCH) is not supported yet. Please open an issue)
Expand Down

0 comments on commit b7ea45d

Please sign in to comment.