Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
Signed-off-by: leleliu008 <leleliu008@gmail.com>
  • Loading branch information
leleliu008 committed Feb 12, 2024
1 parent 3ddf414 commit 2770f5d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ndk-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,8 @@ EOF

RECEIPT_PACKAGE_BUILTFOR_PLATFORM_VERS="$(printf '%s\n' "$RECEIPT_PACKAGE_BUILTFOR" | cut -d- -f2)"

RECEIPT_PACKAGE_BUILTFOR_PLATFORM_NAME=android

[ -z "$RECEIPT_PACKAGE_BUILTBY" ] && abort 1 "receipt scheme error. builtby mapping was not found in $PACKAGE_RECEIPT_FILEPATH."
[ -z "$RECEIPT_PACKAGE_BUILTAT" ] && abort 1 "receipt scheme error. builtat mapping was not found in $PACKAGE_RECEIPT_FILEPATH."
[ -z "$RECEIPT_PACKAGE_VERSION" ] && abort 1 "receipt scheme error. version mapping was not found in $PACKAGE_RECEIPT_FILEPATH."
Expand Down Expand Up @@ -6341,6 +6343,13 @@ EOF

#########################################################################

if [ "$TARGET_PLATFORM_ARCH" = "x86_64" ] || [ "$TARGET_PLATFORM_ARCH" = "i686" ] ; then
LIBCLANG_RT_BUILTINS_FILEPATH="$("$CC" -print-libgcc-file-name)"
export RUSTFLAGS="$RUSTFLAGS -Clink-arg=$LIBCLANG_RT_BUILTINS_FILEPATH"
fi

#########################################################################

for DEPENDENT_PACKAGE_NAME in $PACKAGE_DEP_PKG
do
if [ "$DEPENDENT_PACKAGE_NAME" = libgetloadavg ] ; then
Expand Down Expand Up @@ -8980,7 +8989,7 @@ main() {

NDKPKG="$CURRENT_SCRIPT_FILEPATH"

NDKPKG_VERSION=0.7.1
NDKPKG_VERSION=0.7.2

NDKPKG_ZSH_COMPLETION_SCRIPT_URL='https://raw.githubusercontent.com/leleliu008/ndk-pkg/master/ndk-pkg-zsh-completion'
NDKPKG_OFFICIAL_FORMULA_REPO_URL='https://github.com/leleliu008/ndk-pkg-formula-repository-official-core.git'
Expand Down

0 comments on commit 2770f5d

Please sign in to comment.