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
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
parent
4be25ff356
commit
8e40481022
|
@ -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
|
||||
|
|
6
Makefile
6
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue