Skip to content

Commit

Permalink
fix(bin/generate-compile-flags-txt.sh): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Sep 28, 2023
1 parent 2cc849d commit e441af5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/generate-compile-flags-txt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ while (( $# > 0 )); do
arch="aarch64"
platform="Android";
export TARGET_OS_ANDROID=1
args+=("-U__APPLE__")
elif [[ "$1" = "android-emulator" ]] || [[ "$1" = "AndroidEmulator" ]]; then
arch="x86_64"
platform="AndroidEmulator";
export TARGET_ANDROID_EMULATOR=1
args+=("-U__APPLE__")
else
platform="$1";
fi
Expand All @@ -58,7 +60,7 @@ while (( $# > 0 )); do
done

function generate () {
local cflags=($("$root/bin/cflags.sh" "${args[@]}") -ferror-limit=0 -I"$root/src" -U__APPLE__)
local cflags=($("$root/bin/cflags.sh" "${args[@]}") -ferror-limit=0 -I"$root/src")

for flag in "${cflags[@]}"; do
echo "$flag"
Expand Down

0 comments on commit e441af5

Please sign in to comment.