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 / om / gpu / spec / build.sh

16 lines · 522 bytes Raw Blame History
1#!/bin/sh
2# SPDX-License-Identifier: Apache-2.0
3# om/gpu/spec/build.sh -- thin compatibility shim over pure seeded-Omega seed/build/gpucoord.om.
4set -eu
5out=${1:?usage: sh om/gpu/spec/build.sh OUTPUT_DIR}
6ROOT=$(CDPATH= cd -- "$(dirname "$0")/../../.." && pwd)
7OMC="${OMC:-$ROOT/seed/out/omc}"
8cd "$ROOT"
9mkdir -p build
10BIN="$ROOT/build/om-gpucoord.$$"
11trap 'rm -f "$BIN"' EXIT
12cat seed/build/common.om seed/build/gpucoord.om | "$OMC" > "$BIN"
13chmod 755 "$BIN"
14rc=0
15OMC="$OMC" "$BIN" build-spec "$out" || rc=$?
16exit "$rc"