- Fix condition_fn resolution: Value call path + dev safety + stub injection - VM bridge: handle Method::birth via BoxCall; ArrayBox push/get/length/set direct bridge - Receiver safety: pin receiver in method_call_handlers to avoid undefined use across blocks - Local vars: materialize on declaration (use init ValueId; void for uninit) - Prefer legacy BoxCall for Array/Map/String/user boxes in emit_box_or_plugin_call (stability-first) - Test runner: update LLVM hint to llvmlite harness (remove LLVM_SYS_180_PREFIX guidance) - Docs/roadmap: update CURRENT_TASK with unified default-ON + guards Note: NYASH_DEV_BIRTH_INJECT_BUILTINS=1 can re-enable builtin birth() injection during migration.
61 lines
1.4 KiB
Makefile
61 lines
1.4 KiB
Makefile
# Nyash selfhosting-dev quick targets
|
|
|
|
.PHONY: build build-release run-minimal smoke-core smoke-selfhost bootstrap roundtrip clean quick fmt lint dep-tree \
|
|
smoke-quick smoke-quick-filter smoke-integration
|
|
|
|
build:
|
|
cargo build --features cranelift-jit
|
|
|
|
build-release:
|
|
cargo build --release --features cranelift-jit
|
|
|
|
run-minimal:
|
|
NYASH_DISABLE_PLUGINS=1 ./target/release/nyash --backend vm apps/selfhost-minimal/main.nyash
|
|
|
|
smoke-core:
|
|
bash tools/jit_smoke.sh
|
|
|
|
smoke-selfhost:
|
|
bash tools/selfhost_vm_smoke.sh
|
|
|
|
bootstrap:
|
|
bash tools/bootstrap_selfhost_smoke.sh
|
|
|
|
roundtrip:
|
|
bash tools/ny_roundtrip_smoke.sh
|
|
|
|
clean:
|
|
cargo clean
|
|
|
|
quick: build-release smoke-selfhost
|
|
|
|
# --- v2 smokes shortcuts ---
|
|
smoke-quick:
|
|
bash tools/smokes/v2/run.sh --profile quick
|
|
|
|
# Usage: make smoke-quick-filter FILTER="json_*"
|
|
smoke-quick-filter:
|
|
bash tools/smokes/v2/run.sh --profile quick --filter "$(FILTER)"
|
|
|
|
smoke-integration:
|
|
bash tools/smokes/v2/run.sh --profile integration
|
|
|
|
fmt:
|
|
cargo fmt --all
|
|
|
|
lint:
|
|
cargo clippy --all-targets --all-features -- -D warnings || true
|
|
|
|
# --- Self-hosting dev helpers (Ny-only inner loop) ---
|
|
dev:
|
|
./tools/dev_selfhost_loop.sh --std -v -- --using-path apps/selfhost:apps apps/selfhost-minimal/main.nyash
|
|
|
|
dev-watch:
|
|
./tools/dev_selfhost_loop.sh --watch --std -v -- --using-path apps/selfhost:apps apps/selfhost-minimal/main.nyash
|
|
|
|
|
|
# --- Self-host dependency tree (Ny-only) ---
|
|
dep-tree:
|
|
cargo build --release
|
|
./target/release/nyash --run-task dep_tree
|