mirror of
https://github.com/ahgamut/rust-ape-example.git
synced 2024-11-21 15:30:59 +00:00
18 lines
313 B
Bash
Executable file
18 lines
313 B
Bash
Executable file
#!/bin/bash
|
|
set -eu
|
|
|
|
COSMO="${COSMO:-/opt/cosmo}"
|
|
ARCH="${ARCH:-x86_64}"
|
|
|
|
declare -a args
|
|
args=()
|
|
for o in "$@" ; do
|
|
case $o in
|
|
"-lunwind") continue;;
|
|
"-Wl,-Bdynamic") continue;;
|
|
"-Wl,-Bstatic") continue;;
|
|
esac
|
|
args+=("$o")
|
|
done
|
|
|
|
$COSMO/bin/$ARCH-unknown-cosmo-cc "${args[@]}"
|