nandi/jolt-nativepublic Fork 0
c90f8af80ae93ec3b20ea6adbac32ddb64736940
Commits
Clone
git clone https://git.rickub.com/nandi/jolt-native.git
git clone ssh://git@rickub.com/nandi/jolt-native.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Lift freeq's AV media plane out of sleek 90f8b89 · on c90f8af80ae93ec3b20ea6adbac32ddb64736940 · nandi · 19d ago
zxx · 22 lines · 914 BBash Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# Compile C++ with zig's bundled glibc sysroot; no system C toolchain
# needed. Same arrangement as vidya's, with one addition it did not need.
#
# `cc-rs` builds a `--target=` from the Rust triple, which carries a vendor
# field: `x86_64-unknown-linux-gnu`. zig's own triples have no vendor, and it
# refuses the whole query rather than ignoring the part it does not want —
# "unable to parse target query: UnknownOperatingSystem", which reads as though
# Linux were the problem. aws-lc-sys compiles C, so this is the difference
# between a workspace that builds and one that does not.
#
# Drop the vendor on the way past. Nothing else is touched.
for arg do
    case "$arg" in
        --target=*-unknown-linux-*)
            arg="--target=$(echo "${arg#--target=}" | sed 's/-unknown-linux-/-linux-/')"
            ;;
    esac
    set -- "$@" "$arg"
    shift
done
exec "$(dirname "$0")/zig" c++ "$@"