Skip to content

Fix build on aarch64 android.#1783

Merged
Dead2 merged 1 commit intozlib-ng:developfrom
wolfpld:develop
Sep 18, 2024
Merged

Fix build on aarch64 android.#1783
Dead2 merged 1 commit intozlib-ng:developfrom
wolfpld:develop

Conversation

@wolfpld
Copy link
Copy Markdown
Contributor

@wolfpld wolfpld commented Sep 17, 2024

When building with CMake toolchain provided by NDK, the ARCH variable is not "aarch64", but "aarch64-none-linux-android26" (or similar). The strict string match check causes the WITH_ARMV6 option to be enabled in such a case. In result, arch/arm/slide_hash_armv6.c is compiled, which is not intended to be used on aarch64, and fails.

Relax the check and assume aarch64 if the ARCH variable contains aarch64.

When building with CMake toolchain provided by NDK, the ARCH variable is
not "aarch64", but "aarch64-none-linux-android26" (or similar). The
strict string match check causes the WITH_ARMV6 option to be enabled in
such a case. In result, arch/arm/slide_hash_armv6.c is compiled, which
is not intended to be used on aarch64, and fails.

Relax the check and assume aarch64 if the ARCH variable contains aarch64.
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.51%. Comparing base (c327d18) to head (30518b2).
Report is 5 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1783      +/-   ##
===========================================
+ Coverage    83.33%   83.51%   +0.18%     
===========================================
  Files          132      132              
  Lines        10021     9997      -24     
  Branches      2687     2687              
===========================================
- Hits          8351     8349       -2     
+ Misses        1012      991      -21     
+ Partials       658      657       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Dead2 Dead2 merged commit 68e31fa into zlib-ng:develop Sep 18, 2024
@Dead2 Dead2 mentioned this pull request Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants