Files
Dmitry Sergeev 326a8d6890 makefile fix
2026-09-16 11:24:25 +03:00

21 lines
490 B
Makefile

# Binaries that mix libmxl (cgo) and wgpu/goffi must use the internal
# linker: goffi's dlopen stubs (SDYNIMPORT relocations) do not survive
# external linking, which the go tool auto-selects for that call graph.
# Harmless for binaries that don't need it.
LD = -ldflags=-linkmode=internal
.PHONY: build run test clean
build:
go build -o ./build/mxl-gen $(LD) ./cmd/mxl-pattern
run:
go run $(LD) ./cmd/mxl-pattern $(ARGS)
test:
go test ./...
clean:
go clean
rm -f ./build/mxl-gen