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
omega-mv / om / gpu / spec / build.sh
| 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. |
| 4 | set -eu |
| 5 | out=${1:?usage: sh om/gpu/spec/build.sh OUTPUT_DIR} |
| 6 | ROOT=$(CDPATH= cd -- "$(dirname "$0")/../../.." && pwd) |
| 7 | OMC="${OMC:-$ROOT/seed/out/omc}" |
| 8 | cd "$ROOT" |
| 9 | mkdir -p build |
| 10 | BIN="$ROOT/build/om-gpucoord.$$" |
| 11 | trap 'rm -f "$BIN"' EXIT |
| 12 | cat seed/build/common.om seed/build/gpucoord.om | "$OMC" > "$BIN" |
| 13 | chmod 755 "$BIN" |
| 14 | rc=0 |
| 15 | OMC="$OMC" "$BIN" build-spec "$out" || rc=$? |
| 16 | exit "$rc" |