interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / mk / zig-u64.mk

23 lines · 1648 bytes Raw Blame History
1# #740 Zig lane (translation-compose-v2): zig-u64-wrapping-pure-v1 importer and extended-family Zig exporter.
2# Author self-test only (TESTED). Everything the self-test uses is built in this tree: the v1 codec
3# build/L574/sa, the v2 codec build/L832/sa, the C importer build/L589, the C exporter build/L622, the
4# lowering build/L831 and, when this tree has it, the retarget tool build/L833.
5# Required environment (no host-path defaults):
6# SA_SEED_REPO omega-bridge repository holding the seed commit 0fc7d866 (tools/source-aware/build)
7# OMEGA_NATIVE_OMC native realization compiler omc 734f0a39 (lowering, retarget, native realization)
8# OMEGA_BRIDGE_REPO omega-bridge repository holding 012860db (native.om binding generator)
9# Zig 0.17.0 comes from $ZIG or `zig` on PATH; without it the self-test exits 3 (NOT_RUN).
10export SA_SEED_REPO OMEGA_NATIVE_OMC OMEGA_BRIDGE_REPO
11.PHONY: zig-u64 test-zig-u64 zig-u64-env
12zig-u64-env:
13 @for v in SA_SEED_REPO OMEGA_NATIVE_OMC OMEGA_BRIDGE_REPO; do eval "x=\$$$$v"; [ -n "$$x" ] || { echo "ZIG_U64_MISSING_ENV: $$v must be set (absolute path)" >&2; exit 2; }; done
14zig-u64: zig-u64-env
15 nice -n 19 python3 tools/adapters/build-zig-u64.py
16test-zig-u64: zig-u64
17 $(MAKE) -f mk/source-aware.mk source-aware
18 $(MAKE) -f mk/source-aware-v2.mk source-aware-v2
19 $(MAKE) -f mk/c-u64-import.mk c-u64-import
20 $(MAKE) -f mk/c-u64-export.mk c-u64-export
21 $(MAKE) -f mk/lower.mk lower
22 if [ -f mk/retarget.mk ]; then $(MAKE) -f mk/retarget.mk retarget; fi
23 nice -n 19 python3 tests/universal/translation/zig_selftest.py --out build/L740/selftest-$$(python3 -c 'import uuid; print(uuid.uuid4().hex)')