mirror of
https://github.com/luxfi/chains.git
synced 2026-09-24 00:26:00 +00:00
Each VM builds as a standalone binary that the Lux node loads via --plugin-dir. Node no longer bakes optional VMs in-process. VMs: evm, dexvm, aivm, bridgevm, graphvm, identityvm, keyvm, oraclevm, quantumvm, relayvm, servicenodevm, teleportvm, thresholdvm, zkvm. All 13 node-dependent VMs compile and report version correctly. EVM requires CGo (luxcpp) — builds in CI only.
15 lines
322 B
Makefile
15 lines
322 B
Makefile
VMS := $(shell ls -d */ 2>/dev/null | sed 's|/||' | grep -v '.github\|build\|node_modules')
|
|
|
|
.PHONY: all test clean $(VMS)
|
|
|
|
all: $(VMS)
|
|
|
|
$(VMS):
|
|
cd $@ && go build -trimpath -ldflags="-s -w" -o ../build/$@ .
|
|
|
|
test:
|
|
@for vm in $(VMS); do echo "=== $$vm ==="; cd $$vm && go test ./... && cd ..; done
|
|
|
|
clean:
|
|
rm -rf build/
|