Skip to content

Commit

Permalink
Allow specifying kconfig for xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed Oct 24, 2022
1 parent 4d722ed commit b24478a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xcode-meson.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ kernel=ish
if [[ -n "$ISH_KERNEL" ]]; then
kernel=$ISH_KERNEL
fi
for var in buildtype log b_ndebug b_sanitize log_handler kernel; do
old_value=$(python3 -c "import sys, json; v = next(x['value'] for x in json.load(sys.stdin) if x['name'] == '$var'); print(str(v).lower() if isinstance(v, bool) else v)" <<< $config)
kconfig=""
for var in buildtype log b_ndebug b_sanitize log_handler kernel kconfig; do
old_value=$(python3 -c "import sys, json; v = next(x['value'] for x in json.load(sys.stdin) if x['name'] == '$var'); print(str(v).lower() if isinstance(v, bool) else ','.join(v) if isinstance(v, list) else v)" <<< $config)
new_value=${!var}
if [[ $old_value != $new_value ]]; then
set -x; meson configure "-D$var=$new_value"
Expand Down

0 comments on commit b24478a

Please sign in to comment.