]>
Commit | Line | Data |
---|---|---|
ff12a795 JT |
1 | #!/usr/bin/env bash |
2 | set -e | |
e7e15703 ZJS |
3 | |
4 | cflags=CFLAGS="$CFLAGS" | |
5 | cxxflags=CXXFLAGS="$CXXFLAGS" | |
6 | declare -a args | |
7 | j=0 | |
8 | for i in "$@"; do | |
9 | case "$i" in | |
10 | CFLAGS=*) | |
11 | cflags="$i";; | |
12 | CXXFLAGS=*) | |
13 | cxxflags="$i";; | |
14 | *) | |
15 | args[$j]="$i" | |
16 | j=$((j+1)) | |
17 | esac | |
18 | done | |
19 | ||
20 | export "$cflags" "$cxxflags" | |
21 | set -x | |
22 | exec meson build "${args[@]}" |