mirror of
https://github.com/ahgamut/rust-ape-example.git
synced 2024-11-25 01:01:01 +00:00
22 lines
398 B
Bash
22 lines
398 B
Bash
|
#!/bin/bash
|
||
|
set -eu
|
||
|
|
||
|
declare -a args
|
||
|
args=()
|
||
|
for o in "$@" ; do
|
||
|
case $o in
|
||
|
"-lunwind") continue;;
|
||
|
"-lutil") continue;;
|
||
|
"-lrt") continue;;
|
||
|
"-lc") continue;;
|
||
|
"-lm") continue;;
|
||
|
"-lpthread") continue;;
|
||
|
"-lgcc") continue;;
|
||
|
"-Wl,-Bdynamic") continue;;
|
||
|
"-Wl,-Bstatic") continue;;
|
||
|
esac
|
||
|
args+=("$o")
|
||
|
done
|
||
|
|
||
|
gcc "${args[@]}"
|