diff options
author | 2021-10-03 20:36:59 -0700 | |
---|---|---|
committer | 2021-10-03 20:36:59 -0700 | |
commit | 139622e0b8b3a52e2a9fc990fed21b01fe1b7bd7 (patch) | |
tree | dd6115a0bfca327cb793d0e411679a66d694be5b /Makefile | |
parent | aaa4aaf53f86226ace4afcd362ab69fde2793a9a (diff) | |
download | bun-139622e0b8b3a52e2a9fc990fed21b01fe1b7bd7.tar.gz bun-139622e0b8b3a52e2a9fc990fed21b01fe1b7bd7.tar.zst bun-139622e0b8b3a52e2a9fc990fed21b01fe1b7bd7.zip |
llvm-strip
Diffstat (limited to '')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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: |