Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ STATIC_LINKING = false
# requires support for the $NDK_ARCH target)
LLVM_BPF_ONLY = false

# Set to true to avoid stripping the final bpftrace binary even in the Release
# build configuration.
BPFTRACE_NO_STRIP = false

BUILD_DIR = build
ANDROID_BUILD_DIR = $(BUILD_DIR)/android/$(NDK_ARCH)
HOST_BUILD_DIR = $(BUILD_DIR)/host
Expand Down
6 changes: 5 additions & 1 deletion projects/bpftrace/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ BPFTRACE_EXTRA_CMAKE_FLAGS = -DSTATIC_LINKING=ON
BPFTRACE_EXTRA_LDFLAGS += "$(abspath $(ANDROID_OUT_DIR))/lib/liblzma.a"
endif

ifeq ($(BUILD_TYPE),Debug)
BPFTRACE_NO_STRIP := true
endif

STRIP_THUNK = $(HOST_OUT_DIR)/bpftrace-strip-thunk

$(BPFTRACE_ANDROID): $(ANDROID_OUT_DIR)/lib/libc++_shared.so
ifeq ($(BUILD_TYPE), Debug)
ifeq ($(BPFTRACE_NO_STRIP),true)
cd $(BPFTRACE_ANDROID_BUILD_DIR) && $(MAKE) install -j $(THREADS)
else
cd $(BPFTRACE_ANDROID_BUILD_DIR) && $(MAKE) install/strip -j $(THREADS)
Expand Down
Loading