Skip to content

Commit

Permalink
Switch to zig cc --strip-all for aarch64 due to Ci errors. Cleanup / …
Browse files Browse the repository at this point in the history
…remove old/unused targets.
  • Loading branch information
afinetooth committed Sep 19, 2024
1 parent 878ade2 commit 6b21f2f
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6b21f2f

Please sign in to comment.