Use dynamic_boehm everywhere
ci/woodpecker/push/arch unknown status Details
ci/woodpecker/push/docker unknown status Details
ci/woodpecker/push/build_experimental Pipeline failed Details
ci/woodpecker/push/lint Pipeline failed Details
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/test Pipeline was successful Details

Jef Roosens 2022-04-21 16:48:35 +02:00
parent 4be25ff356
commit 8e40481022
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 3 additions and 22 deletions

View File

@ -27,22 +27,3 @@ pipeline:
- du -h suvieter - du -h suvieter
when: when:
event: push event: push
dynamic-boehm-prod:
image: 'chewingbever/vlang:latest'
pull: true
group: 'build'
environment:
- LDFLAGS=-lz -lbz2 -llzma -lexpat -lzstd -llz4 -static
- VFLAGS=-cc gcc -d dynamic_boehm
commands:
- make prod
# Make sure the binary is actually statically built
- readelf -d pvieter
- du -h pvieter
- '[ "$(readelf -d pvieter | grep NEEDED | wc -l)" = 0 ]'
# This removes so much, it's amazing
- strip -s pvieter
- du -h pvieter
when:
event: push

View File

@ -3,7 +3,7 @@ SRC_DIR := src
SOURCES != find '$(SRC_DIR)' -iname '*.v' SOURCES != find '$(SRC_DIR)' -iname '*.v'
V_PATH ?= v V_PATH ?= v
V := $(V_PATH) -showcc -gc boehm V := $(V_PATH) -showcc -gc boehm -d dynamic_boehm
all: vieter all: vieter
@ -12,7 +12,7 @@ all: vieter
# We force the boehm gc to be compiled dynamically because otherwise, our CI # We force the boehm gc to be compiled dynamically because otherwise, our CI
# build breaks. # build breaks.
vieter: $(SOURCES) vieter: $(SOURCES)
$(V) -d dynamic_boehm -g -o vieter $(SRC_DIR) $(V) -g -o vieter $(SRC_DIR)
# Debug build using gcc # Debug build using gcc
# The debug build can't use the boehm garbage collector, as that is # The debug build can't use the boehm garbage collector, as that is
@ -66,7 +66,7 @@ vet:
.PHONY: test .PHONY: test
test: test:
$(V) -d dynamic_boehm test $(SRC_DIR) $(V) test $(SRC_DIR)
# Build & patch the V compiler # Build & patch the V compiler
.PHONY: v .PHONY: v