Skip to content

Commit

Permalink
Merge pull request #153 from TheBlueMatt/main
Browse files Browse the repository at this point in the history
Skip passing the `--target` to clang on Android
  • Loading branch information
TheBlueMatt committed Mar 13, 2024
2 parents 7a41563 + 2dc5209 commit fb99052
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions genbindings.sh
Expand Up @@ -81,8 +81,10 @@ fi

COMMON_COMPILE="$CC -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-unused-function -Wno-nullability-completeness -Wno-pointer-sign -Wdate-time -ffile-prefix-map=$(pwd)="
COMMON_CC=""
[[ "$TARGET_STRING" != "x86"* ]] && COMMON_CC="$COMMON_CC --target=$TARGET_STRING -mcpu=$LDK_TARGET_CPU"
[[ "$TARGET_STRING" = "x86"* ]] && COMMON_CC="$COMMON_CC --target=$TARGET_STRING -march=$LDK_TARGET_CPU -mtune=$LDK_TARGET_CPU"
if [[ "$TARGET_STRING != *"android" ]]; then
[[ "$TARGET_STRING" != "x86"* ]] && COMMON_CC="$COMMON_CC --target=$TARGET_STRING -mcpu=$LDK_TARGET_CPU"
[[ "$TARGET_STRING" = "x86"* ]] && COMMON_CC="$COMMON_CC --target=$TARGET_STRING -march=$LDK_TARGET_CPU -mtune=$LDK_TARGET_CPU"
fi
[ "$IS_MAC" = "true" -a "$MACOS_SDK" != "" ] && COMMON_COMPILE="$COMMON_COMPILE -isysroot $MACOS_SDK"
DEBUG_ARG="$3"
Expand Down

0 comments on commit fb99052

Please sign in to comment.