Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/mk/translation.mk # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / mk / translation.mk` 56 lines ยท 3428 bytes Raw Blame History 1 # #624 integration: the G1 C17 <-> Omega slice end to end (spec/universal/translation-v1.md). 2 # Host aarch64 NATIVE only; foreign compilers (cc) are output compilers and oracles, never a fallback. 3 .PHONY: translation-omc test-translation-g1 test-translation-g2 test-translation-g3 4 T624 := build/T624 5 # Native realization compiler (translation-v1 section 1): born from the seed of a pinned omega-mv commit 6 # unless OMEGA_NATIVE_OMC names an existing one; either way its sha256 must be `734f0a39`. 7 T624_SEED_COMMIT := `f8588e10ae70ddcb901ebf4fd20618b283a94005` 8 T624_OMC_SHA256 := `734f0a39319fbfa930bcc62cb30dbf06d47d78e126372b74f5baf478e6126b61` 9 # `export` of an unset variable in an earlier mk/*.mk (cpp-u64, lower, retarget) defines it empty, and 10 # `?=` keeps an empty definition; so the defaults below test for empty instead. 11 ifeq ($(strip $(OMEGA_NATIVE_OMC)),) 12 OMEGA_NATIVE_OMC := $(CURDIR)/$(T624)/seed/seed/out/omc 13 endif 14 # SA_SEED_REPO: an aien-dev/omega-bridge clone holding seed `0fc7d866` and native.om `012860db`. Required 15 # (absolute path); there is no host default. 16 ifeq ($(strip $(OMEGA_BRIDGE_REPO)),) 17 OMEGA_BRIDGE_REPO = $(SA_SEED_REPO) 18 endif 19 export OMEGA_NATIVE_OMC SA_SEED_REPO OMEGA_BRIDGE_REPO 20 21 translation-omc: 22 @test -n "$(SA_SEED_REPO)" || { echo "T624: set SA_SEED_REPO to an aien-dev/omega-bridge clone (absolute path)"; exit 2; } 23 @if [ ! -x "$(OMEGA_NATIVE_OMC)" ] && [ "$(OMEGA_NATIVE_OMC)" = "$(CURDIR)/$(T624)/seed/seed/out/omc" ]; then \ 24 rm -rf $(T624)/seed && mkdir -p $(T624)/seed && \ 25 git archive $(T624_SEED_COMMIT) seed | tar -x -C $(T624)/seed && \ 26 (cd $(T624)/seed && sh seed/omega-from-seed.sh > ../seed.log 2>&1) || { tail -3 $(T624)/seed.log; exit 1; }; fi 27 @test "$$(sha256sum < "$(OMEGA_NATIVE_OMC)" | cut -c1-64)" = "$(T624_OMC_SHA256)" || \ 28 { echo "T624: $(OMEGA_NATIVE_OMC) is not the pinned omc $(T624_OMC_SHA256)"; exit 1; } 29 30 test-translation-g1: translation-omc 31 python3 tests/universal/translation/make_fixtures.py --check 32 $(MAKE) -f mk/c-u64-import.mk test-c-u64-import 33 $(MAKE) -f mk/source-aware.mk source-aware 34 $(MAKE) -f mk/lower.mk test-lower 35 $(MAKE) -f mk/c-u64-export.mk test-c-export 36 $(MAKE) -f mk/translation-validate.mk test-translation-validate 37 @echo "TRANSLATION-G1 PASS (fixtures, C import, codec, lower, C export, independent validation)" 38 39 # G2 (translation-compose-v1.md): Rust and Python adapters and the 6 C/Rust/Python compositions. 40 test-translation-g2: test-translation-g1 41 $(MAKE) -f mk/rust-u64.mk test-rust-u64 42 $(MAKE) -f mk/python-u64.mk test-python-u64 43 $(MAKE) -f mk/translation-validate.mk test-translation-compose 44 @echo "TRANSLATION-G2 PASS (Rust, Python adapters; 6 compositions, independent validation)" 45 46 # G3 (translation-compose-v2.md): source-aware v2 codec, retarget, C++/Zig/Go adapters, the 30 directed 47 # compositions of six languages and the independent v2 reference decoder. Oracles: g++ and rustc on 48 # PATH, ZIG and GO (and GOFMT) set by the caller; a missing oracle is NOT_RUN (exit 3), never PASS. 49 test-translation-g3: test-translation-g2 50 $(MAKE) -f mk/source-aware-v2.mk test-source-aware-v2 51 $(MAKE) -f mk/retarget.mk test-retarget 52 $(MAKE) -f mk/cpp-u64.mk test-cpp-u64 53 $(MAKE) -f mk/zig-u64.mk test-zig-u64 54 $(MAKE) -f mk/go-u64.mk test-go-u64 55 $(MAKE) -f mk/translation-validate.mk test-translation-compose-v2 56 @echo "TRANSLATION-G3 PASS (v2 codec, retarget, C++/Zig/Go adapters; 30 compositions, independent validation)"