aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-03 20:36:59 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-10-03 20:36:59 -0700
commit139622e0b8b3a52e2a9fc990fed21b01fe1b7bd7 (patch)
treedd6115a0bfca327cb793d0e411679a66d694be5b /Makefile
parentaaa4aaf53f86226ace4afcd362ab69fde2793a9a (diff)
downloadbun-139622e0b8b3a52e2a9fc990fed21b01fe1b7bd7.tar.gz
bun-139622e0b8b3a52e2a9fc990fed21b01fe1b7bd7.tar.zst
bun-139622e0b8b3a52e2a9fc990fed21b01fe1b7bd7.zip
llvm-strip
Diffstat (limited to '')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e1c66a1e4..b03d2f4d5 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,12 @@ BUN_BUILD_TAG := bun-v$(PACKAGE_JSON_VERSION)
CC := clang
CXX := clang++
+
+
+STRIP ?= $(shell which llvm-strip || which llvm-strip-12 || echo "Missing llvm-strip. Please pass it in the STRIP environment var"; exit 1)
+
+
+
ifeq ($(OS_NAME),darwin)
HOMEBREW_PREFIX := $(shell brew --prefix)/
endif
@@ -335,7 +341,7 @@ bun-link-lld-release:
-ftls-model=initial-exec \
-O3
cp $(BIN_DIR)/bun $(BIN_DIR)/bun-profile
- llvm-strip $(BIN_DIR)/bun
+ $(STRIP) $(BIN_DIR)/bun
rm $(BIN_DIR)/bun.o
bun-link-lld-release-aarch64: