Use dynamic_boehm everywhere

Jef Roosens 2022-04-21 16:48:35 +02:00
parent ead4c5f4b7
commit d5409201c7
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
when:
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'
V_PATH ?= v
V := $(V_PATH) -showcc -gc boehm
V := $(V_PATH) -showcc -gc boehm -d dynamic_boehm
all: vieter
@ -12,7 +12,7 @@ all: vieter
# We force the boehm gc to be compiled dynamically because otherwise, our CI
# build breaks.
vieter: $(SOURCES)
$(V) -d dynamic_boehm -g -o vieter $(SRC_DIR)
$(V) -g -o vieter $(SRC_DIR)
# Debug build using gcc
# The debug build can't use the boehm garbage collector, as that is
@ -66,7 +66,7 @@ vet:
.PHONY: test
test:
$(V) -d dynamic_boehm test $(SRC_DIR)
$(V) test $(SRC_DIR)
# Build & patch the V compiler
.PHONY: v