This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
2023-01-21 03:26:56 +01:00
|
|
|
LDPATH ?= /tmp/libipc/zig-impl/build
|
|
|
|
SRC ?= ./bin/some-crystal-app
|
|
|
|
|
|
|
|
VG_OPTS = --leak-check=full -v
|
2023-01-21 19:08:24 +01:00
|
|
|
VG_OPTS += --show-leak-kinds=all
|
2023-01-21 03:26:56 +01:00
|
|
|
VG_OPTS += --suppressions=valgrind.suppressions
|
|
|
|
VG_OPTS += --gen-suppressions=all
|
|
|
|
|
2023-01-21 05:10:55 +01:00
|
|
|
build:
|
|
|
|
CRYSTAL_LIBRARY_PATH=$(LDPATH) shards build
|
|
|
|
|
2023-01-21 03:26:56 +01:00
|
|
|
valgrind:
|
|
|
|
LD_LIBRARY_PATH=$(LDPATH) valgrind $(VG_OPTS) $(SRC)
|
2023-01-21 05:10:55 +01:00
|
|
|
|
|
|
|
run:
|
|
|
|
LD_LIBRARY_PATH=$(LDPATH) $(SRC)
|