From 6b21f2fc13a835c31319dba125b3f4673b353258 Mon Sep 17 00:00:00 2001 From: James Kessler Date: Wed, 18 Sep 2024 17:48:46 -0700 Subject: [PATCH] Switch to zig cc --strip-all for aarch64 due to Ci errors. Cleanup / remove old/unused targets. --- Makefile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 76b3df4..7a895b1 100644 --- a/Makefile +++ b/Makefile @@ -43,25 +43,17 @@ compile-x86_64: compile-aarch64: docker run --rm -v $(shell pwd):/app -w /app ${IMAGE_NAME}:${VERSION} xbuild src/cli.cr coveralls-linux-aarch64 aarch64-linux-musl -#.PHONY: copy-linux -## Create the generic "coveralls-linux" binary by copying from the x86_64 version -#copy-linux: -# cp $(BINARY_X86_64) $(BINARY_LINUX) - .PHONY: strip-aarch64 strip-aarch64: $(BINARY_AARCH64) - docker run --rm -v $(shell pwd):/app -w /app ${IMAGE_NAME}:${VERSION} strip $(BINARY_AARCH64) + #docker run --rm -v $(shell pwd):/app -w /app ${IMAGE_NAME}:${VERSION} strip $(BINARY_AARCH64) + docker run --rm -v $(shell pwd):/app -w /app ${IMAGE_NAME}:${VERSION} zig objcopy --strip-all $(BINARY_AARCH64) $(BINARY_AARCH64)-stripped + mv $(BINARY_AARCH64)-stripped $(BINARY_AARCH64) .PHONY: strip-x86_64 strip-x86_64: $(BINARY_X86_64) docker run --rm -v $(shell pwd):/app -w /app ${IMAGE_NAME}:${VERSION} zig objcopy --strip-all $(BINARY_X86_64) $(BINARY_X86_64)-stripped mv $(BINARY_X86_64)-stripped $(BINARY_X86_64) -#.PHONY: strip-linux -#strip-linux: $(BINARY_LINUX) -# docker run --rm -v $(shell pwd):/app -w /app ${IMAGE_NAME}:${VERSION} zig objcopy --strip-all $(BINARY_LINUX) $(BINARY_LINUX)-stripped -# mv $(BINARY_LINUX)-stripped $(BINARY_LINUX) - .PHONY: compile-and-strip-all compile-and-strip-all: compile-aarch64 compile-x86_64 strip-aarch64 strip-x86_64